MCPcopy Create free account
hub / github.com/tailscale/tailscale / Close

Method Close

drive/driveimpl/remote_impl.go:254–265  ·  view source on GitHub ↗

Close() implements drive.FileSystemForRemote.

()

Source from the content-addressed store, hash-verified

252
253// Close() implements drive.FileSystemForRemote.
254func (s *FileSystemForRemote) Close() error {
255 s.mu.Lock()
256 userServers := s.userServers
257 children := s.children
258 s.userServers = make(map[string]*userServer)
259 s.children = make(map[string]*compositedav.Child)
260 s.mu.Unlock()
261
262 s.stopUserServers(userServers)
263 s.closeChildren(children)
264 return nil
265}
266
267// userServer runs tailscaled serve-taildrive to serve webdav content for the
268// given Shares. All Shares are assumed to have the same Share.As, and the

Callers

nothing calls this directly

Implementers 1

FileSystemForRemotedrive/driveimpl/remote_impl.go

Calls 4

stopUserServersMethod · 0.95
closeChildrenMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected