Documentation ¶
Index ¶
- func Check(err error)
- func MaskError(err error) error
- func Mount(conf FilesystemConfig) error
- type Directory
- func (dir *Directory) Attr(ctx context.Context, a *fuse.Attr) error
- func (dir *Directory) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error)
- func (dir *Directory) Lookup(ctx context.Context, name string) (fs.Node, error)
- func (dir *Directory) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, error)
- func (dir *Directory) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)
- func (dir *Directory) Remove(ctx context.Context, req *fuse.RemoveRequest) error
- func (dir *Directory) Rename(ctx context.Context, req *fuse.RenameRequest, newDir fs.Node) error
- type File
- type FileNode
- func (fi *FileNode) Attr(ctx context.Context, a *fuse.Attr) error
- func (fi *FileNode) Fsync(ctx context.Context, req *fuse.FsyncRequest) error
- func (fi *FileNode) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error)
- func (fi *FileNode) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error
- type Filesystem
- type FilesystemConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mount ¶
func Mount(conf FilesystemConfig) error
Types ¶
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
func (*Directory) ReadDirAll ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) Read ¶
func (f *File) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
func (*File) Write ¶
func (f *File) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error
type FileNode ¶
type FileNode struct {
// contains filtered or unexported fields
}
func (*FileNode) Open ¶
func (fi *FileNode) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error)
func (*FileNode) Setattr ¶
func (fi *FileNode) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error
type Filesystem ¶
type Filesystem struct {
RootNode *Directory
}
type FilesystemConfig ¶
type FilesystemConfig struct { Conn *fuse.Conn Client *middleware.Client }
Click to show internal directories.
Click to hide internal directories.