Documentation
¶
Index ¶
- func CreateRamFS() *ramdiskFS
- func MountAndServe(mountpoint string, optionalListener *FSEvents) error
- type Dir
- func (d *Dir) Attr(ctx context.Context, a *fuse.Attr) error
- func (d *Dir) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error)
- func (d *Dir) Lookup(ctx context.Context, name string) (fs.Node, error)
- func (d *Dir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)
- type EventFileClosed
- type EventFileCreated
- type EventFileOpened
- type EventFileRead
- type EventFileWritten
- type FSEvent
- type FSEvents
- type FileEntry
- type Handle
- type RamFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRamFS ¶
func CreateRamFS() *ramdiskFS
func MountAndServe ¶
Types ¶
type EventFileClosed ¶
type EventFileClosed struct {
FSEvent
}
type EventFileCreated ¶
type EventFileCreated struct {
FSEvent
}
type EventFileOpened ¶
type EventFileOpened struct {
FSEvent
}
type EventFileRead ¶
type EventFileRead struct {
FSEvent
}
type EventFileWritten ¶
type EventFileWritten struct {
FSEvent
}
type FSEvents ¶
type FSEvents struct { FileCreated chan EventFileCreated FileOpened chan EventFileOpened FileRead chan EventFileRead FileWritten chan EventFileWritten FileClosed chan EventFileClosed Unmount chan bool }
func NewFSEvents ¶
func NewFSEvents() (fsevents FSEvents)
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
implements fs.Handle, fs.HandleWriter, fs.HandleReader
func (Handle) Read ¶
func (h Handle) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
func (Handle) Write ¶
func (h Handle) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error
Click to show internal directories.
Click to hide internal directories.