Versions in this module Expand all Collapse all v0 v0.1.0 Aug 21, 2015 Changes in this version + func GenerateDynamicInode(parent uint64, name string) uint64 + func Serve(c *fuse.Conn, fs FS) error + type Config struct + Debug func(msg interface{}) + GetContext func() context.Context + type FS interface + Root func() (Node, error) + type FSDestroyer interface + Destroy func() + type FSInodeGenerator interface + GenerateInode func(parentInode uint64, name string) uint64 + type FSStatfser interface + Statfs func(ctx context.Context, req *fuse.StatfsRequest, resp *fuse.StatfsResponse) error + type Handle interface + func DataHandle(data []byte) Handle + type HandleFlusher interface + Flush func(ctx context.Context, req *fuse.FlushRequest) error + type HandleReadAller interface + ReadAll func(ctx context.Context) ([]byte, error) + type HandleReadDirAller interface + ReadDirAll func(ctx context.Context) ([]fuse.Dirent, error) + type HandleReader interface + Read func(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error + type HandleReleaser interface + Release func(ctx context.Context, req *fuse.ReleaseRequest) error + type HandleWriter interface + Write func(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error + type Node interface + Attr func(ctx context.Context, attr *fuse.Attr) error + type NodeAccesser interface + Access func(ctx context.Context, req *fuse.AccessRequest) error + type NodeCreater interface + Create func(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (Node, Handle, error) + type NodeForgetter interface + Forget func() + type NodeFsyncer interface + Fsync func(ctx context.Context, req *fuse.FsyncRequest) error + type NodeGetattrer interface + Getattr func(ctx context.Context, req *fuse.GetattrRequest, resp *fuse.GetattrResponse) error + type NodeGetxattrer interface + Getxattr func(ctx context.Context, req *fuse.GetxattrRequest, resp *fuse.GetxattrResponse) error + type NodeLinker interface + Link func(ctx context.Context, req *fuse.LinkRequest, old Node) (Node, error) + type NodeListxattrer interface + Listxattr func(ctx context.Context, req *fuse.ListxattrRequest, resp *fuse.ListxattrResponse) error + type NodeMkdirer interface + Mkdir func(ctx context.Context, req *fuse.MkdirRequest) (Node, error) + type NodeMknoder interface + Mknod func(ctx context.Context, req *fuse.MknodRequest) (Node, error) + type NodeOpener interface + Open func(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (Handle, error) + type NodeReadlinker interface + Readlink func(ctx context.Context, req *fuse.ReadlinkRequest) (string, error) + type NodeRef struct + type NodeRemover interface + Remove func(ctx context.Context, req *fuse.RemoveRequest) error + type NodeRemovexattrer interface + Removexattr func(ctx context.Context, req *fuse.RemovexattrRequest) error + type NodeRenamer interface + Rename func(ctx context.Context, req *fuse.RenameRequest, newDir Node) error + type NodeRequestLookuper interface + Lookup func(ctx context.Context, req *fuse.LookupRequest, resp *fuse.LookupResponse) (Node, error) + type NodeSetattrer interface + Setattr func(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error + type NodeSetxattrer interface + Setxattr func(ctx context.Context, req *fuse.SetxattrRequest) error + type NodeStringLookuper interface + Lookup func(ctx context.Context, name string) (Node, error) + type NodeSymlinker interface + Symlink func(ctx context.Context, req *fuse.SymlinkRequest) (Node, error) + type Server struct + func New(conn *fuse.Conn, config *Config) *Server + func (s *Server) InvalidateEntry(parent Node, name string) error + func (s *Server) InvalidateNodeAttr(node Node) error + func (s *Server) InvalidateNodeData(node Node) error + func (s *Server) InvalidateNodeDataRange(node Node, off int64, size int64) error + func (s *Server) Serve(fs FS) error + type Tree struct + func (t *Tree) Add(path string, node Node) + func (t *Tree) Attr(ctx context.Context, a *fuse.Attr) error + func (t *Tree) Lookup(ctx context.Context, name string) (Node, error) + func (t *Tree) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error) + func (t *Tree) Root() (Node, error)