Documentation
¶
Overview ¶
Package fs contains the FTP implementation of the fuse.FileSystemInterface, and the FuseHost that can mount it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FTPClient ¶
type FTPClient interface { fuse.FileSystemInterface // SetAddress will quit open connections, change the address, and reconnect // The method is intended to be used when a FUSE mount must survive a change of // FTP server address. SetAddress(addr netip.AddrPort) error }
func NewFTPClient ¶
func NewFTPClient(done <-chan struct{}, addr netip.AddrPort, dir string, ro bool, readTimeout time.Duration) (FTPClient, error)
NewFTPClient returns an implementation of the fuse.FileSystemInterface that is backed by an FTP server connection tp the address. The dir parameter is the directory that the FTP server changes to when connecting.
type FuseHost ¶
type FuseHost struct {
// contains filtered or unexported fields
}
FuseHost wraps a fuse.FileSystemHost and adds Start/Stop semantics
func NewHost ¶
func NewHost(fsh fuse.FileSystemInterface, mountPoint string) *FuseHost
NewHost creates a FuseHost instance that will mount the given filesystem on the given mountPoint.
Click to show internal directories.
Click to hide internal directories.