Documentation
¶
Index ¶
- func Mount(ctx context.Context, backend *FileSystem, mountpoint string) (*fuse.Server, error)
- type FileSystem
- func (f *FileSystem) Chmod(ctx context.Context, rel string, mode os.FileMode) syscall.Errno
- func (f *FileSystem) CreateFile(ctx context.Context, rel string) syscall.Errno
- func (f *FileSystem) MkDir(ctx context.Context, rel string) syscall.Errno
- func (f *FileSystem) ReadDir(rel string) ([]os.FileInfo, syscall.Errno)
- func (f *FileSystem) ReadFile(ctx context.Context, rel string, off int64, size int) ([]byte, syscall.Errno)
- func (f *FileSystem) Rename(ctx context.Context, oldRel, newRel string) syscall.Errno
- func (f *FileSystem) Rmdir(ctx context.Context, rel string) syscall.Errno
- func (f *FileSystem) Stat(rel string) (os.FileInfo, syscall.Errno)
- func (f *FileSystem) Truncate(ctx context.Context, rel string, size int64) syscall.Errno
- func (f *FileSystem) Unlink(ctx context.Context, rel string) syscall.Errno
- func (f *FileSystem) WriteFile(ctx context.Context, rel string, data []byte, off int64) (uint32, syscall.Errno)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
FileSystem backs a FUSE mount with a remote.FileClient. Each op is translated into the corresponding FileClient method call.
func New ¶
func New(sftp remote.FileClient, root string, log *slog.Logger) *FileSystem
func (*FileSystem) CreateFile ¶
Click to show internal directories.
Click to hide internal directories.