Skip to content

Commit 1468337

Browse files
authored
tailscale: update tailfs file and package names (tailscale#11590)
This change updates the tailfs file and package names to their new naming convention. Updates #tailscale/corp#16827 Signed-off-by: Charlotte Brandhorst-Satzkorn <charlotte@tailscale.com>
1 parent 1c25910 commit 1468337

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+180
-180
lines changed

client/tailscale/localclient.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ import (
2828

2929
"go4.org/mem"
3030
"tailscale.com/client/tailscale/apitype"
31+
"tailscale.com/drive"
3132
"tailscale.com/envknob"
3233
"tailscale.com/ipn"
3334
"tailscale.com/ipn/ipnstate"
3435
"tailscale.com/net/netutil"
3536
"tailscale.com/paths"
3637
"tailscale.com/safesocket"
3738
"tailscale.com/tailcfg"
38-
"tailscale.com/tailfs"
3939
"tailscale.com/tka"
4040
"tailscale.com/types/key"
4141
"tailscale.com/types/tkatype"
@@ -1429,7 +1429,7 @@ func (lc *LocalClient) TailFSSetFileServerAddr(ctx context.Context, addr string)
14291429
// TailFSShareSet adds or updates the given share in the list of shares that
14301430
// TailFS 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 *tailfs.Share) error {
1432+
func (lc *LocalClient) TailFSShareSet(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
}
@@ -1459,12 +1459,12 @@ func (lc *LocalClient) TailFSShareRename(ctx context.Context, oldName, newName s
14591459

14601460
// TailFSShareList returns the list of shares that TailFS is currently serving
14611461
// to remote nodes.
1462-
func (lc *LocalClient) TailFSShareList(ctx context.Context) ([]*tailfs.Share, error) {
1462+
func (lc *LocalClient) TailFSShareList(ctx context.Context) ([]*drive.Share, error) {
14631463
result, err := lc.get200(ctx, "/localapi/v0/tailfs/shares")
14641464
if err != nil {
14651465
return nil, err
14661466
}
1467-
var shares []*tailfs.Share
1467+
var shares []*drive.Share
14681468
err = json.Unmarshal(result, &shares)
14691469
return shares, err
14701470
}

client/tailscale/localclient_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ func TestDeps(t *testing.T) {
3434
deptest.DepChecker{
3535
BadDeps: map[string]string{
3636
// Make sure we don't again accidentally bring in a dependency on
37-
// TailFS or its transitive dependencies
38-
"tailscale.com/tailfs/tailfsimpl": "https://github.com/tailscale/tailscale/pull/10631",
39-
"github.com/studio-b12/gowebdav": "https://github.com/tailscale/tailscale/pull/10631",
37+
// drive or its transitive dependencies
38+
"tailscale.com/drive/driveimpl": "https://github.com/tailscale/tailscale/pull/10631",
39+
"github.com/studio-b12/gowebdav": "https://github.com/tailscale/tailscale/pull/10631",
4040
},
4141
}.Check(t)
4242
}

cmd/derper/depaware.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ tailscale.com/cmd/derper dependencies: (generated by github.com/tailscale/depawa
8686
tailscale.com/derp from tailscale.com/cmd/derper+
8787
tailscale.com/derp/derphttp from tailscale.com/cmd/derper
8888
tailscale.com/disco from tailscale.com/derp
89+
tailscale.com/drive from tailscale.com/client/tailscale+
8990
tailscale.com/envknob from tailscale.com/client/tailscale+
9091
tailscale.com/health from tailscale.com/net/tlsdial
9192
tailscale.com/hostinfo from tailscale.com/net/interfaces+
@@ -114,7 +115,6 @@ tailscale.com/cmd/derper dependencies: (generated by github.com/tailscale/depawa
114115
💣 tailscale.com/safesocket from tailscale.com/client/tailscale
115116
tailscale.com/syncs from tailscale.com/cmd/derper+
116117
tailscale.com/tailcfg from tailscale.com/client/tailscale+
117-
tailscale.com/tailfs from tailscale.com/client/tailscale+
118118
tailscale.com/tka from tailscale.com/client/tailscale+
119119
W tailscale.com/tsconst from tailscale.com/net/interfaces
120120
tailscale.com/tstime from tailscale.com/derp+

cmd/tailscale/cli/share.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strings"
1111

1212
"github.com/peterbourgon/ff/v3/ffcli"
13-
"tailscale.com/tailfs"
13+
"tailscale.com/drive"
1414
)
1515

1616
const (
@@ -69,7 +69,7 @@ func runShareSet(ctx context.Context, args []string) error {
6969

7070
name, path := args[0], args[1]
7171

72-
err := localClient.TailFSShareSet(ctx, &tailfs.Share{
72+
err := localClient.TailFSShareSet(ctx, &drive.Share{
7373
Name: name,
7474
Path: path,
7575
})
@@ -145,7 +145,7 @@ func runShareList(ctx context.Context, args []string) error {
145145

146146
func buildShareLongHelp() string {
147147
longHelpAs := ""
148-
if tailfs.AllowShareAs() {
148+
if drive.AllowShareAs() {
149149
longHelpAs = shareLongHelpAs
150150
}
151151
return fmt.Sprintf(shareLongHelpBase, longHelpAs)

cmd/tailscale/depaware.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ tailscale.com/cmd/tailscale dependencies: (generated by github.com/tailscale/dep
8484
tailscale.com/derp from tailscale.com/derp/derphttp
8585
tailscale.com/derp/derphttp from tailscale.com/net/netcheck
8686
tailscale.com/disco from tailscale.com/derp
87+
tailscale.com/drive from tailscale.com/client/tailscale+
8788
tailscale.com/envknob from tailscale.com/client/tailscale+
8889
tailscale.com/health from tailscale.com/net/tlsdial
8990
tailscale.com/health/healthmsg from tailscale.com/cmd/tailscale/cli
@@ -118,7 +119,6 @@ tailscale.com/cmd/tailscale dependencies: (generated by github.com/tailscale/dep
118119
💣 tailscale.com/safesocket from tailscale.com/client/tailscale+
119120
tailscale.com/syncs from tailscale.com/cmd/tailscale/cli+
120121
tailscale.com/tailcfg from tailscale.com/client/tailscale+
121-
tailscale.com/tailfs from tailscale.com/cmd/tailscale/cli+
122122
tailscale.com/tka from tailscale.com/client/tailscale+
123123
W tailscale.com/tsconst from tailscale.com/net/interfaces
124124
tailscale.com/tstime from tailscale.com/control/controlhttp+

cmd/tailscaled/depaware.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ tailscale.com/cmd/tailscaled dependencies: (generated by github.com/tailscale/de
8888
W github.com/dblohm7/wingoes/internal from github.com/dblohm7/wingoes/com
8989
W 💣 github.com/dblohm7/wingoes/pe from tailscale.com/util/osdiag+
9090
LW 💣 github.com/digitalocean/go-smbios/smbios from tailscale.com/posture
91-
💣 github.com/djherbis/times from tailscale.com/tailfs/tailfsimpl
91+
💣 github.com/djherbis/times from tailscale.com/drive/driveimpl
9292
github.com/fxamacker/cbor/v2 from tailscale.com/tka
9393
github.com/gaissmai/bart from tailscale.com/net/tstun
9494
W 💣 github.com/go-ole/go-ole from github.com/go-ole/go-ole/oleutil+
@@ -111,7 +111,7 @@ tailscale.com/cmd/tailscaled dependencies: (generated by github.com/tailscale/de
111111
L github.com/insomniacslk/dhcp/iana from github.com/insomniacslk/dhcp/dhcpv4
112112
L github.com/insomniacslk/dhcp/interfaces from github.com/insomniacslk/dhcp/dhcpv4
113113
L github.com/insomniacslk/dhcp/rfc1035label from github.com/insomniacslk/dhcp/dhcpv4
114-
github.com/jellydator/ttlcache/v3 from tailscale.com/tailfs/tailfsimpl/compositedav
114+
github.com/jellydator/ttlcache/v3 from tailscale.com/drive/driveimpl/compositedav
115115
L github.com/jmespath/go-jmespath from github.com/aws/aws-sdk-go-v2/service/ssm
116116
L github.com/josharian/native from github.com/mdlayher/netlink+
117117
L 💣 github.com/jsimonetti/rtnetlink from tailscale.com/net/interfaces+
@@ -172,7 +172,7 @@ tailscale.com/cmd/tailscaled dependencies: (generated by github.com/tailscale/de
172172
github.com/tailscale/wireguard-go/rwcancel from github.com/tailscale/wireguard-go/device+
173173
github.com/tailscale/wireguard-go/tai64n from github.com/tailscale/wireguard-go/device
174174
💣 github.com/tailscale/wireguard-go/tun from github.com/tailscale/wireguard-go/device+
175-
github.com/tailscale/xnet/webdav from tailscale.com/tailfs/tailfsimpl+
175+
github.com/tailscale/xnet/webdav from tailscale.com/drive/driveimpl+
176176
github.com/tailscale/xnet/webdav/internal/xml from github.com/tailscale/xnet/webdav
177177
github.com/tcnksm/go-httpstat from tailscale.com/net/netcheck
178178
LD github.com/u-root/u-root/pkg/termios from tailscale.com/ssh/tailssh
@@ -251,6 +251,11 @@ tailscale.com/cmd/tailscaled dependencies: (generated by github.com/tailscale/de
251251
tailscale.com/doctor/ethtool from tailscale.com/ipn/ipnlocal
252252
💣 tailscale.com/doctor/permissions from tailscale.com/ipn/ipnlocal
253253
tailscale.com/doctor/routetable from tailscale.com/ipn/ipnlocal
254+
tailscale.com/drive from tailscale.com/client/tailscale+
255+
tailscale.com/drive/driveimpl from tailscale.com/cmd/tailscaled
256+
tailscale.com/drive/driveimpl/compositedav from tailscale.com/drive/driveimpl
257+
tailscale.com/drive/driveimpl/dirfs from tailscale.com/drive/driveimpl+
258+
tailscale.com/drive/driveimpl/shared from tailscale.com/drive/driveimpl+
254259
tailscale.com/envknob from tailscale.com/client/tailscale+
255260
tailscale.com/health from tailscale.com/control/controlclient+
256261
tailscale.com/health/healthmsg from tailscale.com/ipn/ipnlocal
@@ -320,11 +325,6 @@ tailscale.com/cmd/tailscaled dependencies: (generated by github.com/tailscale/de
320325
tailscale.com/syncs from tailscale.com/cmd/tailscaled+
321326
tailscale.com/tailcfg from tailscale.com/client/tailscale+
322327
tailscale.com/taildrop from tailscale.com/ipn/ipnlocal+
323-
tailscale.com/tailfs from tailscale.com/client/tailscale+
324-
tailscale.com/tailfs/tailfsimpl from tailscale.com/cmd/tailscaled
325-
tailscale.com/tailfs/tailfsimpl/compositedav from tailscale.com/tailfs/tailfsimpl
326-
tailscale.com/tailfs/tailfsimpl/dirfs from tailscale.com/tailfs/tailfsimpl+
327-
tailscale.com/tailfs/tailfsimpl/shared from tailscale.com/tailfs/tailfsimpl+
328328
LD tailscale.com/tempfork/gliderlabs/ssh from tailscale.com/ssh/tailssh
329329
tailscale.com/tempfork/heap from tailscale.com/wgengine/magicsock
330330
tailscale.com/tka from tailscale.com/client/tailscale+

cmd/tailscaled/tailscaled.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333
"tailscale.com/client/tailscale"
3434
"tailscale.com/cmd/tailscaled/childproc"
3535
"tailscale.com/control/controlclient"
36+
"tailscale.com/drive/driveimpl"
3637
"tailscale.com/envknob"
3738
"tailscale.com/ipn/conffile"
3839
"tailscale.com/ipn/ipnlocal"
@@ -52,7 +53,6 @@ import (
5253
"tailscale.com/paths"
5354
"tailscale.com/safesocket"
5455
"tailscale.com/syncs"
55-
"tailscale.com/tailfs/tailfsimpl"
5656
"tailscale.com/tsd"
5757
"tailscale.com/tsweb/varz"
5858
"tailscale.com/types/flagtype"
@@ -407,7 +407,7 @@ func run() (err error) {
407407
debugMux = newDebugMux()
408408
}
409409

410-
sys.Set(tailfsimpl.NewFileSystemForRemote(logf))
410+
sys.Set(driveimpl.NewFileSystemForRemote(logf))
411411

412412
return startIPNServer(context.Background(), logf, pol.PublicID, sys)
413413
}
@@ -650,7 +650,7 @@ func tryEngine(logf logger.Logf, sys *tsd.System, name string) (onlyNetstack boo
650650
Dialer: sys.Dialer.Get(),
651651
SetSubsystem: sys.Set,
652652
ControlKnobs: sys.ControlKnobs(),
653-
TailFSForLocal: tailfsimpl.NewFileSystemForLocal(logf),
653+
TailFSForLocal: driveimpl.NewFileSystemForLocal(logf),
654654
}
655655

656656
onlyNetstack = name == "userspace-networking"
@@ -847,7 +847,7 @@ func serveTailFS(args []string) error {
847847
if len(args)%2 != 0 {
848848
return errors.New("need <sharename> <path> pairs")
849849
}
850-
s, err := tailfsimpl.NewFileServer()
850+
s, err := driveimpl.NewFileServer()
851851
if err != nil {
852852
return fmt.Errorf("unable to start tailfs FileServer: %v", err)
853853
}

cmd/tailscaled/tailscaled_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ import (
4242
"golang.org/x/sys/windows/svc/eventlog"
4343
"golang.zx2c4.com/wintun"
4444
"golang.zx2c4.com/wireguard/windows/tunnel/winipcfg"
45+
"tailscale.com/drive/driveimpl"
4546
"tailscale.com/envknob"
4647
"tailscale.com/logpolicy"
4748
"tailscale.com/logtail/backoff"
4849
"tailscale.com/net/dns"
4950
"tailscale.com/net/netmon"
5051
"tailscale.com/net/tstun"
51-
"tailscale.com/tailfs/tailfsimpl"
5252
"tailscale.com/tsd"
5353
"tailscale.com/types/logger"
5454
"tailscale.com/types/logid"
@@ -316,7 +316,7 @@ func beWindowsSubprocess() bool {
316316
}
317317
sys.Set(netMon)
318318

319-
sys.Set(tailfsimpl.NewFileSystemForRemote(log.Printf))
319+
sys.Set(driveimpl.NewFileSystemForRemote(log.Printf))
320320

321321
publicLogID, _ := logid.ParsePublicID(logID)
322322
err = startIPNServer(ctx, log.Printf, publicLogID, sys)
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)