Documentation ¶
Overview ¶
Package fsfuse exposes an fs.FS as a FUSE server.
Index ¶
- Constants
- func NewServer(fsys fs.FS, opts ...Option) fuse.Server
- func Unmount(mountPath string) error
- type FS
- func (f *FS) BatchForget(ctx context.Context, op *fuseops.BatchForgetOp) error
- func (f *FS) FlushFile(context.Context, *fuseops.FlushFileOp) error
- func (f *FS) ForgetInode(ctx context.Context, op *fuseops.ForgetInodeOp) error
- func (f *FS) GetInodeAttributes(ctx context.Context, op *fuseops.GetInodeAttributesOp) error
- func (f *FS) LookUpInode(ctx context.Context, op *fuseops.LookUpInodeOp) error
- func (f *FS) Mount(ctx context.Context, mountPath string) (MountedFileSystem, error)
- func (f *FS) OpenDir(ctx context.Context, op *fuseops.OpenDirOp) error
- func (f *FS) OpenFile(ctx context.Context, op *fuseops.OpenFileOp) error
- func (f *FS) ReadDir(ctx context.Context, op *fuseops.ReadDirOp) error
- func (f *FS) ReadFile(ctx context.Context, op *fuseops.ReadFileOp) error
- func (f *FS) ReleaseDirHandle(ctx context.Context, op *fuseops.ReleaseDirHandleOp) error
- func (f *FS) ReleaseFileHandle(ctx context.Context, op *fuseops.ReleaseFileHandleOp) error
- type MountedFileSystem
- type Option
Constants ¶
View Source
const DefaultCacheDur = 356 * 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FS ¶
type FS struct { *fuseutil.NotImplementedFileSystem // contains filtered or unexported fields }
func New ¶ added in v0.25.1
New returns an *FS, with the given Options.
If cacheDur < 0 then the caching will be disabled; if cacheDur == 0 then the default 1 year will be used.
func (*FS) BatchForget ¶
func (*FS) ForgetInode ¶
func (*FS) GetInodeAttributes ¶
func (*FS) LookUpInode ¶
func (*FS) ReleaseDirHandle ¶
func (*FS) ReleaseFileHandle ¶
type MountedFileSystem ¶ added in v0.25.1
type MountedFileSystem struct { *fuse.MountedFileSystem Path string }
MountedFileSystem wraps a *fuse.MountedFileSystem to store the mount path.
type Option ¶ added in v0.25.1
type Option func(*options)
Option sets an option on options.
func WithCacheDur ¶ added in v0.25.1
WithCacheDur sets the cache duration for the mount.
Click to show internal directories.
Click to hide internal directories.