Documentation ¶
Overview ¶
Bazil Fuse adapter interface
Index ¶
- type FDDir
- func (fdd *FDDir) Attr(ctx context.Context, attr *fuse.Attr) error
- func (fdd *FDDir) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error)
- func (fdd *FDDir) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.LookupResponse) (fs.Node, error)
- func (fdd *FDDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)
- type FDFile
- func (fdf *FDFile) Attr(ctx context.Context, attr *fuse.Attr) error
- func (fdf *FDFile) Flush(ctx context.Context, req *fuse.FlushRequest) error
- func (fdf *FDFile) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error)
- func (fdf *FDFile) ReadAll(ctx context.Context) ([]byte, error)
- func (fdf *FDFile) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error
- type FuseSimpleDevice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FDDir ¶
type FDDir struct { Key string FS *FuseSimpleDevice }
FDDir ... Directory entry which is not really a thing
func (*FDDir) Create ¶
func (fdd *FDDir) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error)
Create ... file creating implementation
type FDFile ¶
type FDFile struct { File api.SimpleFile Key string FS *FuseSimpleDevice }
FDFile ... File entry in Device
func (*FDFile) Open ¶
func (fdf *FDFile) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error)
Open ... file should already be open
func (*FDFile) Write ¶
func (fdf *FDFile) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error
Write ... Implements write fuse handler
type FuseSimpleDevice ¶
type FuseSimpleDevice struct { MountPoint string api.SimpleDevice // contains filtered or unexported fields }
Fuse ... Fuse wrapper
func NewFuseSimpleDevice ¶
func NewFuseSimpleDevice(mountPoint string, device api.SimpleDevice) (*FuseSimpleDevice, error)
NewFuse ... Create a new Fuse instance
func (*FuseSimpleDevice) Exit ¶
func (fd *FuseSimpleDevice) Exit() error
func (*FuseSimpleDevice) Mount ¶
func (fd *FuseSimpleDevice) Mount(mountPoint string, ioMap *qos.IOMap) error
Mount ... Connect to fuse
func (*FuseSimpleDevice) Root ¶
func (fd *FuseSimpleDevice) Root() (fs.Node, error)
Root ... Required for fuse system
func (*FuseSimpleDevice) Unmount ¶
func (fd *FuseSimpleDevice) Unmount() error
Unmount ... Unmount hook
Click to show internal directories.
Click to hide internal directories.