Versions in this module Expand all Collapse all v1 v1.0.0 Feb 23, 2019 Changes in this version + const F_OFD_GETLK + const F_OFD_SETLK + const F_OFD_SETLKW + type File interface + Allocate func(off uint64, size uint64, mode uint32) (code fuse.Status) + Chmod func(perms uint32) fuse.Status + Chown func(uid uint32, gid uint32) fuse.Status + Flush func() fuse.Status + Fsync func(flags int) (code fuse.Status) + GetAttr func(out *fuse.Attr) fuse.Status + GetLk func(owner uint64, lk *fuse.FileLock, flags uint32, out *fuse.FileLock) (code fuse.Status) + InnerFile func() File + Read func(dest []byte, off int64) (fuse.ReadResult, fuse.Status) + Release func() + SetInode func(*Inode) + SetLk func(owner uint64, lk *fuse.FileLock, flags uint32) (code fuse.Status) + SetLkw func(owner uint64, lk *fuse.FileLock, flags uint32) (code fuse.Status) + String func() string + Truncate func(size uint64) fuse.Status + Utimens func(atime *time.Time, mtime *time.Time) fuse.Status + Write func(data []byte, off int64) (written uint32, code fuse.Status) + func NewDataFile(data []byte) File + func NewDefaultFile() File + func NewDevNullFile() File + func NewLockingFile(mu *sync.Mutex, f File) File + func NewLoopbackFile(f *os.File) File + func NewReadOnlyFile(f File) File + type FileSystemConnector struct + func MountRoot(mountpoint string, root Node, opts *Options) (*fuse.Server, *FileSystemConnector, error) + func NewFileSystemConnector(root Node, opts *Options) (c *FileSystemConnector) + func (c *FileSystemConnector) DeleteNotify(dir *Inode, child *Inode, name string) fuse.Status + func (c *FileSystemConnector) EntryNotify(node *Inode, name string) fuse.Status + func (c *FileSystemConnector) FileNotify(node *Inode, off int64, length int64) fuse.Status + func (c *FileSystemConnector) FileNotifyStoreCache(node *Inode, off int64, data []byte) fuse.Status + func (c *FileSystemConnector) FileRetrieveCache(node *Inode, off int64, dest []byte) (n int, st fuse.Status) + func (c *FileSystemConnector) InodeHandleCount() int + func (c *FileSystemConnector) LookupNode(parent *Inode, path string) *Inode + func (c *FileSystemConnector) Mount(parent *Inode, name string, root Node, opts *Options) fuse.Status + func (c *FileSystemConnector) Node(parent *Inode, fullPath string) (*Inode, []string) + func (c *FileSystemConnector) RawFS() fuse.RawFileSystem + func (c *FileSystemConnector) Server() *fuse.Server + func (c *FileSystemConnector) SetDebug(debug bool) + func (c *FileSystemConnector) Unmount(node *Inode) fuse.Status + type Inode struct + func (n *Inode) AddChild(name string, child *Inode) + func (n *Inode) AnyFile() (file File) + func (n *Inode) Children() (out map[string]*Inode) + func (n *Inode) Files(mask uint32) (files []WithFlags) + func (n *Inode) FsChildren() (out map[string]*Inode) + func (n *Inode) GetChild(name string) (child *Inode) + func (n *Inode) IsDir() bool + func (n *Inode) NewChild(name string, isDir bool, fsi Node) *Inode + func (n *Inode) Node() Node + func (n *Inode) Parent() (parent *Inode, name string) + func (n *Inode) RmChild(name string) (ch *Inode) + func (n *Inode) String() string + type Node interface + Access func(mode uint32, context *fuse.Context) (code fuse.Status) + Chmod func(file File, perms uint32, context *fuse.Context) (code fuse.Status) + Chown func(file File, uid uint32, gid uint32, context *fuse.Context) (code fuse.Status) + Create func(name string, flags uint32, mode uint32, context *fuse.Context) (file File, child *Inode, code fuse.Status) + Deletable func() bool + Fallocate func(file File, off uint64, size uint64, mode uint32, context *fuse.Context) (code fuse.Status) + GetAttr func(out *fuse.Attr, file File, context *fuse.Context) (code fuse.Status) + GetLk func(file File, owner uint64, lk *fuse.FileLock, flags uint32, out *fuse.FileLock, ...) (code fuse.Status) + GetXAttr func(attribute string, context *fuse.Context) (data []byte, code fuse.Status) + Inode func() *Inode + Link func(name string, existing Node, context *fuse.Context) (newNode *Inode, code fuse.Status) + ListXAttr func(context *fuse.Context) (attrs []string, code fuse.Status) + Lookup func(out *fuse.Attr, name string, context *fuse.Context) (*Inode, fuse.Status) + Mkdir func(name string, mode uint32, context *fuse.Context) (newNode *Inode, code fuse.Status) + Mknod func(name string, mode uint32, dev uint32, context *fuse.Context) (newNode *Inode, code fuse.Status) + OnForget func() + OnMount func(conn *FileSystemConnector) + OnUnmount func() + Open func(flags uint32, context *fuse.Context) (file File, code fuse.Status) + OpenDir func(context *fuse.Context) ([]fuse.DirEntry, fuse.Status) + Read func(file File, dest []byte, off int64, context *fuse.Context) (fuse.ReadResult, fuse.Status) + Readlink func(c *fuse.Context) ([]byte, fuse.Status) + RemoveXAttr func(attr string, context *fuse.Context) fuse.Status + Rename func(oldName string, newParent Node, newName string, context *fuse.Context) (code fuse.Status) + Rmdir func(name string, context *fuse.Context) (code fuse.Status) + SetInode func(node *Inode) + SetLk func(file File, owner uint64, lk *fuse.FileLock, flags uint32, ...) (code fuse.Status) + SetLkw func(file File, owner uint64, lk *fuse.FileLock, flags uint32, ...) (code fuse.Status) + SetXAttr func(attr string, data []byte, flags int, context *fuse.Context) fuse.Status + StatFs func() *fuse.StatfsOut + Symlink func(name string, content string, context *fuse.Context) (*Inode, fuse.Status) + Truncate func(file File, size uint64, context *fuse.Context) (code fuse.Status) + Unlink func(name string, context *fuse.Context) (code fuse.Status) + Utimens func(file File, atime *time.Time, mtime *time.Time, context *fuse.Context) (code fuse.Status) + Write func(file File, data []byte, off int64, context *fuse.Context) (written uint32, code fuse.Status) + func NewDefaultNode() Node + func NewMemNodeFSRoot(prefix string) Node + type Options struct + AttrTimeout time.Duration + Debug bool + EntryTimeout time.Duration + LookupKnownChildren bool + NegativeTimeout time.Duration + PortableInodes bool + func NewOptions() *Options + type TreeWatcher interface + OnAdd func(parent *Inode, name string) + OnRemove func(parent *Inode, name string) + type WithFlags struct + Description string + FuseFlags uint32 + OpenFlags uint32 + func (f *WithFlags) String() string Other modules containing this package github.com/hanwen/go-fuse/v2