Documentation ¶
Index ¶
- func NewBridgeFileHandle(fd int) fs.FileHandle
- func NewBridgeNode(n *BridgeNode) fs.InodeEmbedder
- func NewBridgeRoot(rootPath string, NewNode func(rootData *bridgeRoot) fs.InodeEmbedder, ...) (fs.InodeEmbedder, error)
- type BridgeFileHandle
- func (f *BridgeFileHandle) Allocate(ctx context.Context, off uint64, sz uint64, mode uint32) syscall.Errno
- func (f *BridgeFileHandle) Flush(ctx context.Context) syscall.Errno
- func (f *BridgeFileHandle) Fsync(ctx context.Context, flags uint32) (errno syscall.Errno)
- func (f *BridgeFileHandle) Getattr(ctx context.Context, a *fuse.AttrOut) syscall.Errno
- func (f *BridgeFileHandle) Getlk(ctx context.Context, owner uint64, lk *fuse.FileLock, flags uint32, ...) (errno syscall.Errno)
- func (f *BridgeFileHandle) Lseek(ctx context.Context, off uint64, whence uint32) (uint64, syscall.Errno)
- func (f *BridgeFileHandle) Read(ctx context.Context, buf []byte, off int64) (res fuse.ReadResult, errno syscall.Errno)
- func (f *BridgeFileHandle) Release(ctx context.Context) syscall.Errno
- func (f *BridgeFileHandle) Setattr(ctx context.Context, in *fuse.SetAttrIn, out *fuse.AttrOut) syscall.Errno
- func (f *BridgeFileHandle) Setlk(ctx context.Context, owner uint64, lk *fuse.FileLock, flags uint32) (errno syscall.Errno)
- func (f *BridgeFileHandle) Setlkw(ctx context.Context, owner uint64, lk *fuse.FileLock, flags uint32) (errno syscall.Errno)
- func (f *BridgeFileHandle) Write(ctx context.Context, data []byte, off int64) (uint32, syscall.Errno)
- type BridgeNode
- func (n *BridgeNode) CopyFileRange(ctx context.Context, fhIn fs.FileHandle, offIn uint64, out *fs.Inode, ...) (uint32, syscall.Errno)
- func (n *BridgeNode) Create(ctx context.Context, name string, flags uint32, mode uint32, ...) (inode *fs.Inode, fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)
- func (n *BridgeNode) GetRealPath(name string) string
- func (n *BridgeNode) Getattr(ctx context.Context, f fs.FileHandle, out *fuse.AttrOut) syscall.Errno
- func (n *BridgeNode) Getxattr(ctx context.Context, attr string, dest []byte) (uint32, syscall.Errno)
- func (n *BridgeNode) Link(ctx context.Context, target fs.InodeEmbedder, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *BridgeNode) Listxattr(ctx context.Context, dest []byte) (uint32, syscall.Errno)
- func (n *BridgeNode) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *BridgeNode) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *BridgeNode) Mknod(ctx context.Context, name string, mode, rdev uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *BridgeNode) Open(ctx context.Context, flags uint32) (fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)
- func (n *BridgeNode) Opendir(ctx context.Context) syscall.Errno
- func (n *BridgeNode) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno)
- func (n *BridgeNode) Readlink(ctx context.Context) ([]byte, syscall.Errno)
- func (n *BridgeNode) Removexattr(ctx context.Context, attr string) syscall.Errno
- func (n *BridgeNode) Rename(ctx context.Context, name string, newParent fs.InodeEmbedder, newName string, ...) syscall.Errno
- func (n *BridgeNode) Rmdir(ctx context.Context, name string) syscall.Errno
- func (n *BridgeNode) Setxattr(ctx context.Context, attr string, data []byte, flags uint32) syscall.Errno
- func (n *BridgeNode) Statfs(ctx context.Context, out *fuse.StatfsOut) syscall.Errno
- func (n *BridgeNode) Symlink(ctx context.Context, target, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *BridgeNode) Unlink(ctx context.Context, name string) syscall.Errno
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBridgeFileHandle ¶
func NewBridgeFileHandle(fd int) fs.FileHandle
NewBridgeFileHandle creates a FileHandle out of a file descriptor. All operations are implemented. When using the Fd from a *os.File, call syscall.Dup() on the Fd, to avoid os.File's finalizer from closing the file descriptor.
func NewBridgeNode ¶
func NewBridgeNode(n *BridgeNode) fs.InodeEmbedder
func NewBridgeRoot ¶
func NewBridgeRoot(rootPath string, NewNode func(rootData *bridgeRoot) fs.InodeEmbedder, GetRealPath func(nodePath string) string) (fs.InodeEmbedder, error)
NewBridgeRoot returns a root node for a loopback file system whose root is at the given root. This node implements all NodeXxxxer operations available.
Types ¶
type BridgeFileHandle ¶
func (*BridgeFileHandle) Flush ¶
func (f *BridgeFileHandle) Flush(ctx context.Context) syscall.Errno
func (*BridgeFileHandle) Read ¶
func (f *BridgeFileHandle) Read(ctx context.Context, buf []byte, off int64) (res fuse.ReadResult, errno syscall.Errno)
func (*BridgeFileHandle) Release ¶
func (f *BridgeFileHandle) Release(ctx context.Context) syscall.Errno
type BridgeNode ¶
BridgeNode is a filesystem node.
func (*BridgeNode) CopyFileRange ¶
func (*BridgeNode) GetRealPath ¶
func (n *BridgeNode) GetRealPath(name string) string
func (*BridgeNode) Getattr ¶
func (n *BridgeNode) Getattr(ctx context.Context, f fs.FileHandle, out *fuse.AttrOut) syscall.Errno
func (*BridgeNode) Open ¶
func (n *BridgeNode) Open(ctx context.Context, flags uint32) (fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)
func (*BridgeNode) Removexattr ¶
func (*BridgeNode) Rename ¶
func (n *BridgeNode) Rename(ctx context.Context, name string, newParent fs.InodeEmbedder, newName string, flags uint32) syscall.Errno
Click to show internal directories.
Click to hide internal directories.