Documentation
¶
Rendered for darwin/amd64
Index ¶
- type Backend
- type FS
- func (f *FS) CreateEx(path string, mode uint32, fi *cgofuse.FileInfo_t) int
- func (f *FS) Destroy()
- func (f *FS) Flush(path string, fh uint64) int
- func (f *FS) Fsync(path string, datasync bool, fh uint64) int
- func (f *FS) Getattr(path string, stat *cgofuse.Stat_t, fh uint64) int
- func (f *FS) Init()
- func (f *FS) Mkdir(path string, mode uint32) int
- func (f *FS) Open(path string, flags int) (int, uint64)
- func (f *FS) OpenEx(path string, fi *cgofuse.FileInfo_t) int
- func (f *FS) Opendir(path string) (int, uint64)
- func (f *FS) Read(path string, buff []byte, ofst int64, fh uint64) int
- func (f *FS) Readdir(path string, fill func(name string, stat *cgofuse.Stat_t, ofst int64) bool, ...) int
- func (f *FS) Ready() <-chan struct{}
- func (f *FS) Release(path string, fh uint64) int
- func (f *FS) Releasedir(path string, fh uint64) int
- func (f *FS) Rename(oldpath string, newpath string) int
- func (f *FS) Rmdir(path string) int
- func (f *FS) Statfs(path string, stat *cgofuse.Statfs_t) int
- func (f *FS) Unlink(path string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend is the cgofuse FUSE backend (macOS via Fuse-T, Windows via WinFsp).
func (*Backend) ForceUnmount ¶
ForceUnmount attempts platform-specific force unmount.
type FS ¶
type FS struct {
cgofuse.FileSystemBase
// contains filtered or unexported fields
}
FS implements cgofuse.FileSystemInterface using NzbFilesystem.
func (*FS) CreateEx ¶
CreateEx is a no-op (read-only filesystem). Required by cgofuse.FileSystemOpenEx.
func (*FS) OpenEx ¶
func (f *FS) OpenEx(path string, fi *cgofuse.FileInfo_t) int
OpenEx opens a file with extended flags (cgofuse.FileSystemOpenEx).
func (*FS) Read ¶
Read reads data from an open file using offset-native ReadAtContext. No per-handle lock needed: ReadAtContext serializes internally via mvf.mu.
func (*FS) Readdir ¶
func (f *FS) Readdir(path string, fill func(name string, stat *cgofuse.Stat_t, ofst int64) bool, ofst int64, fh uint64) int
Readdir reads directory entries.
func (*FS) Ready ¶
func (f *FS) Ready() <-chan struct{}
Ready returns a channel that is closed when Init has been called.
func (*FS) Releasedir ¶
Releasedir releases a directory.
Click to show internal directories.
Click to hide internal directories.