Documentation ¶
Index ¶
- Variables
- func NewInode() uint64
- func NewNode(name string, mode os.FileMode, parent fs.Node) node
- type Directory
- func (d *Directory) Access(ctx context.Context, req *fuse.AccessRequest) error
- func (d *Directory) Attr(ctx context.Context, a *fuse.Attr) error
- func (n *Directory) Children() fs.Nodes
- func (n *Directory) Content() []byte
- func (d *Directory) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fusefs.Node, fusefs.Handle, error)
- func (n *Directory) Delete() bool
- func (n *Directory) Entry() fuse.Dirent
- func (d *Directory) Flush(ctx context.Context, req *fuse.FlushRequest) error
- func (n *Directory) IsDir() bool
- func (n *Directory) IsFile() bool
- func (d *Directory) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.LookupResponse) (fusefs.Node, error)
- func (n *Directory) MetaData() fs.NodeMetaData
- func (d *Directory) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fusefs.Node, error)
- func (n *Directory) Name() string
- func (d *Directory) New(t fs.NodeType, name string) fs.Node
- func (d *Directory) NewDirectory(name string) *Directory
- func (d *Directory) NewFile(name string) *File
- func (d *Directory) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fusefs.Handle, error)
- func (n *Directory) Parent(args ...fs.Node) fs.Node
- func (n *Directory) Path(args ...string) string
- func (d *Directory) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
- func (d *Directory) ReadAll(ctx context.Context) ([]byte, error)
- func (d *Directory) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)
- func (d *Directory) Remove(ctx context.Context, req *fuse.RemoveRequest) error
- type FS
- type File
- func (f *File) Attr(ctx context.Context, a *fuse.Attr) error
- func (n *File) Children() fs.Nodes
- func (f *File) Content() []byte
- func (n *File) Delete() bool
- func (n *File) Entry() fuse.Dirent
- func (f *File) Fsync(ctx context.Context, req *fuse.FsyncRequest) error
- func (f *File) Getxattr(ctx context.Context, req *fuse.GetxattrRequest, resp *fuse.GetxattrResponse) error
- func (n *File) IsDir() bool
- func (n *File) IsFile() bool
- func (n *File) MetaData() fs.NodeMetaData
- func (n *File) Name() string
- func (f *File) New(t fs.NodeType, name string) fs.Node
- func (f *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fusefs.Handle, error)
- func (n *File) Parent(args ...fs.Node) fs.Node
- func (n *File) Path(args ...string) string
- func (f *File) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
- func (f *File) ReadAll(ctx context.Context) ([]byte, error)
- func (f *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error
- func (f *File) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GameEngine game.Engine
View Source
var (
Name = "DungeonFS"
)
View Source
var PkgLogger logger
Functions ¶
Types ¶
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
func (*Directory) Lookup ¶
func (d *Directory) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.LookupResponse) (fusefs.Node, error)
func (*Directory) MetaData ¶
func (n *Directory) MetaData() fs.NodeMetaData
func (*Directory) NewDirectory ¶
func (*Directory) Open ¶
func (d *Directory) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fusefs.Handle, error)
func (*Directory) Read ¶
func (d *Directory) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
func (*Directory) ReadDirAll ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) Getxattr ¶
func (f *File) Getxattr(ctx context.Context, req *fuse.GetxattrRequest, resp *fuse.GetxattrResponse) error
func (*File) MetaData ¶
func (n *File) MetaData() fs.NodeMetaData
func (*File) New ¶
New always returns a nil interface because files cannot have child nodes in the same way as `fs.Directory` nodes.
func (*File) Open ¶
func (f *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fusefs.Handle, error)
func (*File) Read ¶
func (f *File) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
func (*File) Setattr ¶
func (f *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error
func (*File) Write ¶
func (f *File) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error
Click to show internal directories.
Click to hide internal directories.