@@ -1418,25 +1418,25 @@ func (lc *LocalClient) CheckUpdate(ctx context.Context) (*tailcfg.ClientVersion,
14181418 return & cv , nil
14191419}
14201420
1421- // TailFSSetFileServerAddr instructs TailFS to use the server at addr to access
1421+ // DriveSetServerAddr instructs Taildrive to use the server at addr to access
14221422// the filesystem. This is used on platforms like Windows and MacOS to let
1423- // TailFS know to use the file server running in the GUI app.
1424- func (lc * LocalClient ) TailFSSetFileServerAddr (ctx context.Context , addr string ) error {
1423+ // Taildrive know to use the file server running in the GUI app.
1424+ func (lc * LocalClient ) DriveSetServerAddr (ctx context.Context , addr string ) error {
14251425 _ , err := lc .send (ctx , "PUT" , "/localapi/v0/tailfs/fileserver-address" , http .StatusCreated , strings .NewReader (addr ))
14261426 return err
14271427}
14281428
1429- // TailFSShareSet adds or updates the given share in the list of shares that
1430- // TailFS will serve to remote nodes. If a share with the same name already
1429+ // DriveShareSet adds or updates the given share in the list of shares that
1430+ // Taildrive will serve to remote nodes. If a share with the same name already
14311431// exists, the existing share is replaced/updated.
1432- func (lc * LocalClient ) TailFSShareSet (ctx context.Context , share * drive.Share ) error {
1432+ func (lc * LocalClient ) DriveShareSet (ctx context.Context , share * drive.Share ) error {
14331433 _ , err := lc .send (ctx , "PUT" , "/localapi/v0/tailfs/shares" , http .StatusCreated , jsonBody (share ))
14341434 return err
14351435}
14361436
1437- // TailFSShareRemove removes the share with the given name from the list of
1438- // shares that TailFS will serve to remote nodes.
1439- func (lc * LocalClient ) TailFSShareRemove (ctx context.Context , name string ) error {
1437+ // DriveShareRemove removes the share with the given name from the list of
1438+ // shares that Taildrive will serve to remote nodes.
1439+ func (lc * LocalClient ) DriveShareRemove (ctx context.Context , name string ) error {
14401440 _ , err := lc .send (
14411441 ctx ,
14421442 "DELETE" ,
@@ -1446,8 +1446,8 @@ func (lc *LocalClient) TailFSShareRemove(ctx context.Context, name string) error
14461446 return err
14471447}
14481448
1449- // TailFSShareRename renames the share from old to new name.
1450- func (lc * LocalClient ) TailFSShareRename (ctx context.Context , oldName , newName string ) error {
1449+ // DriveShareRename renames the share from old to new name.
1450+ func (lc * LocalClient ) DriveShareRename (ctx context.Context , oldName , newName string ) error {
14511451 _ , err := lc .send (
14521452 ctx ,
14531453 "POST" ,
@@ -1457,9 +1457,9 @@ func (lc *LocalClient) TailFSShareRename(ctx context.Context, oldName, newName s
14571457 return err
14581458}
14591459
1460- // TailFSShareList returns the list of shares that TailFS is currently serving
1460+ // DriveShareList returns the list of shares that drive is currently serving
14611461// to remote nodes.
1462- func (lc * LocalClient ) TailFSShareList (ctx context.Context ) ([]* drive.Share , error ) {
1462+ func (lc * LocalClient ) DriveShareList (ctx context.Context ) ([]* drive.Share , error ) {
14631463 result , err := lc .get200 (ctx , "/localapi/v0/tailfs/shares" )
14641464 if err != nil {
14651465 return nil , err
0 commit comments