Documentation ¶
Overview ¶
Package ffuse implements a FUSE filesystem driver backed by the flexible filesystem package (github.com/creachadair/ffs). It is compatible with the github.com/hanwen/go-fuse packages for FUSE integration.
Index ¶
- type FS
- func (f *FS) Access(ctx context.Context, mask uint32) errno
- func (f *FS) Create(ctx context.Context, name string, flags, mode uint32, out *fuse.EntryOut) (in *fs.Inode, fh fs.FileHandle, _ uint32, _ errno)
- func (f *FS) Fsync(ctx context.Context, fh fs.FileHandle, flags uint32) errno
- func (f *FS) Getattr(ctx context.Context, fh fs.FileHandle, out *fuse.AttrOut) errno
- func (f *FS) Getxattr(ctx context.Context, attr string, dest []byte) (uint32, errno)
- func (f *FS) Link(ctx context.Context, target fs.InodeEmbedder, name string, out *fuse.EntryOut) (*fs.Inode, errno)
- func (f *FS) Listxattr(ctx context.Context, dest []byte) (uint32, errno)
- func (f *FS) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, errno)
- func (f *FS) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, errno)
- func (f *FS) Open(ctx context.Context, flags uint32) (fs.FileHandle, uint32, errno)
- func (f *FS) Readdir(ctx context.Context) (fs.DirStream, errno)
- func (f *FS) Readlink(ctx context.Context) ([]byte, errno)
- func (f *FS) Removexattr(ctx context.Context, attr string) errno
- func (f *FS) Rename(ctx context.Context, name string, newParent fs.InodeEmbedder, newName string, ...) errno
- func (f *FS) Rmdir(ctx context.Context, name string) errno
- func (f *FS) Setattr(ctx context.Context, _ fs.FileHandle, in *fuse.SetAttrIn, out *fuse.AttrOut) errno
- func (f *FS) Setxattr(ctx context.Context, attr string, data []byte, flags uint32) errno
- func (f *FS) Symlink(ctx context.Context, target, name string, out *fuse.EntryOut) (*fs.Inode, errno)
- func (f *FS) Unlink(ctx context.Context, name string) errno
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct { // The fs.Inode is self-synchronizing, and is accessed via its // impelmentation of the fs.InodeEmbedder interface. Its key requirement is // that we must not copy the value. fs.Inode // contains filtered or unexported fields }
func (*FS) Access ¶
Access implements the fs.NodeAccesser interface.
func (*FS) Create ¶
func (f *FS) Create(ctx context.Context, name string, flags, mode uint32, out *fuse.EntryOut) (in *fs.Inode, fh fs.FileHandle, _ uint32, _ errno)
Create implements the fs.NodeCreater interface.
func (*FS) Fsync ¶
Fsync implements the fs.NodeFsyncer interface.
func (*FS) Getattr ¶
Getattr implements the fs.NodeGetattrer interface.
func (*FS) Getxattr ¶
Getxattr implements the fs.NodeGetxattrer interface.
func (*FS) Link ¶
func (f *FS) Link(ctx context.Context, target fs.InodeEmbedder, name string, out *fuse.EntryOut) (*fs.Inode, errno)
Link implements the fs.NodeLinker interface.
func (*FS) Listxattr ¶
Listxattr implements the fs.NodeListxattrer interface.
func (*FS) Lookup ¶
Lookup implements the fs.NodeLookuper interface.
func (*FS) Mkdir ¶
func (f *FS) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, errno)
Mkdir implements the fs.NodeMkdirer interface.
func (*FS) Open ¶
Open implements the fs.NodeOpener interface.
func (*FS) Readdir ¶
Readdir implements the fs.NodeReaddirer interface.
func (*FS) Readlink ¶
Readlink implements the fs.NodeReadlinker interface.
func (*FS) Removexattr ¶
Removexattr implements the fs.NodeRemovexattrer interface.
func (*FS) Rename ¶
func (f *FS) Rename(ctx context.Context, name string, newParent fs.InodeEmbedder, newName string, flags uint32) errno
Rename implements the fs.NodeRenameer interface.
func (*FS) Rmdir ¶
Rmdir implements the fs.NodeRmdirer interface.
func (*FS) Setattr ¶
func (f *FS) Setattr(ctx context.Context, _ fs.FileHandle, in *fuse.SetAttrIn, out *fuse.AttrOut) errno
Setattr implements the fs.NodeSetattrer interface.
func (*FS) Setxattr ¶
Setxattr implements the fs.NodeSetxattrer interface.