fuse

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowDev

func AllowDev() fuse.MountOption

AllowDev is a proxy function to bazil.org/fuse.AllowDev(), see https://pkg.go.dev/bazil.org/fuse#AllowDev for details.

func AllowNonEmptyMount

func AllowNonEmptyMount() fuse.MountOption

AllowNonEmptyMount is a proxy function to bazil.org/fuse.AllowNonEmptyMount(), see https://pkg.go.dev/bazil.org/fuse#AllowNonEmptyMount for details.

func AllowOther

func AllowOther() fuse.MountOption

AllowOther is a proxy function to bazil.org/fuse.AllowOther(), see https://pkg.go.dev/bazil.org/fuse#AllowOther for details.

func AllowSUID

func AllowSUID() fuse.MountOption

AllowSUID is a proxy function to bazil.org/fuse.AllowSUID(), see https://pkg.go.dev/bazil.org/fuse#AllowSUID for details.

func AsyncRead

func AsyncRead() fuse.MountOption

AsyncRead is a proxy function to bazil.org/fuse.AsyncRead(), see https://pkg.go.dev/bazil.org/fuse#AsyncRead for details.

func CongestionThreshold

func CongestionThreshold(n uint16) fuse.MountOption

CongestionThreshold is a proxy function to bazil.org/fuse.CongestionThreshold(), see https://pkg.go.dev/bazil.org/fuse#CongestionThreshold for details.

func DaemonTimeout

func DaemonTimeout(name string) fuse.MountOption

DaemonTimeout is a proxy function to bazil.org/fuse.DaemonTimeout(), see https://pkg.go.dev/bazil.org/fuse#DaemonTimeout for details.

func DefaultPermissions

func DefaultPermissions() fuse.MountOption

DefaultPermissions is a proxy function to bazil.org/fuse.DefaultPermissions(), see https://pkg.go.dev/bazil.org/fuse#DefaultPermissions for details.

func FSName

func FSName(name string) fuse.MountOption

FSName is a proxy function to bazil.org/fuse.FSName(), see https://pkg.go.dev/bazil.org/fuse#FSName for details.

func LockingFlock

func LockingFlock() fuse.MountOption

LockingFlock is a proxy function to bazil.org/fuse.LockingFlock(), see https://pkg.go.dev/bazil.org/fuse#LockingFlock for details.

func LockingPOSIX

func LockingPOSIX() fuse.MountOption

LockingPOSIX is a proxy function to bazil.org/fuse.LockingPOSIX(), see https://pkg.go.dev/bazil.org/fuse#LockingPOSIX for details.

func MaxBackground

func MaxBackground(n uint16) fuse.MountOption

MaxBackground is a proxy function to bazil.org/fuse.MaxBackground(), see https://pkg.go.dev/bazil.org/fuse#MaxBackground for details.

func MaxReadahead

func MaxReadahead(n uint32) fuse.MountOption

MaxReadahead is a proxy function to bazil.org/fuse.MaxReadahead(), see https://pkg.go.dev/bazil.org/fuse#MaxReadahead for details.

func ReadOnly

func ReadOnly() fuse.MountOption

ReadOnly is a proxy function to bazil.org/fuse.ReadOnly(), see https://pkg.go.dev/bazil.org/fuse#ReadOnly for details.

func Subtype

func Subtype(fstype string) fuse.MountOption

Subtype is a proxy function to bazil.org/fuse.Subtype(), see https://pkg.go.dev/bazil.org/fuse#Subtype for details.

func ToErrno

func ToErrno(err error) fuse.Errno

func WritebackCache

func WritebackCache() fuse.MountOption

WritebackCache is a proxy function to bazil.org/fuse.WritebackCache(), see https://pkg.go.dev/bazil.org/fuse#WritebackCache for details.

Types

type Filesystem

type Filesystem struct {
	// contains filtered or unexported fields
}

func New

func New(store fs.FS, dir string, options ...fuse.MountOption) (*Filesystem, error)

func (*Filesystem) Close

func (fsys *Filesystem) Close() error

func (*Filesystem) Reload

func (fsys *Filesystem) Reload() error

func (*Filesystem) Root

func (fsys *Filesystem) Root() (types.Node, error)

func (*Filesystem) Serve

func (fsys *Filesystem) Serve() error

func (*Filesystem) Unmount

func (fsys *Filesystem) Unmount() error

type Handle

type Handle struct {
	// contains filtered or unexported fields
}

func (*Handle) Flush

func (h *Handle) Flush(ctx context.Context, req *fuse.FlushRequest) error

func (*Handle) Poll

func (h *Handle) Poll(ctx context.Context, req *fuse.PollRequest, resp *fuse.PollResponse) error

func (*Handle) Read

func (h *Handle) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error

func (*Handle) ReadAll

func (h *Handle) ReadAll(ctx context.Context) ([]byte, error)

func (*Handle) ReadDirAll

func (h *Handle) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

func (*Handle) Release

func (h *Handle) Release(ctx context.Context, req *fuse.ReleaseRequest) error

func (*Handle) String

func (h *Handle) String() string

func (*Handle) Write

func (h *Handle) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error

type MountOption

type MountOption = fuse.MountOption

MountOption is an alias of the fuse.MountOption type.

type Node

type Node struct {
	// contains filtered or unexported fields
}

func (*Node) Access

func (node *Node) Access(ctx context.Context, req *fuse.AccessRequest) error

func (*Node) Attr

func (node *Node) Attr(ctx context.Context, attr *types.Attr) error

func (*Node) Create

func (node *Node) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (types.Node, types.Handle, error)

func (*Node) Forget

func (node *Node) Forget()

func (*Node) Fsyncer

func (node *Node) Fsyncer(ctx context.Context, req *fuse.FsyncRequest) error

func (*Node) Getxattr

func (node *Node) Getxattr(ctx context.Context, req *fuse.GetxattrRequest, resp *fuse.GetxattrResponse) error
func (node *Node) Link(ctx context.Context, req *fuse.LinkRequest, old types.Node) (types.Node, error)

func (*Node) Listxattr

func (node *Node) Listxattr(ctx context.Context, req *fuse.ListxattrRequest, resp *fuse.ListxattrResponse) error

func (*Node) Lookup

func (node *Node) Lookup(ctx context.Context, name string) (types.Node, error)

func (*Node) Mkdir

func (node *Node) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (types.Node, error)

func (*Node) Mknod

func (node *Node) Mknod(ctx context.Context, req *fuse.MknodRequest) (types.Node, error)

func (*Node) Open

func (node *Node) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (types.Handle, error)

func (*Node) Poll

func (node *Node) Poll(ctx context.Context, req *fuse.PollRequest, resp *fuse.PollResponse) error
func (node *Node) Readlink(ctx context.Context, req *fuse.ReadlinkRequest) (string, error)

func (*Node) Remove

func (node *Node) Remove(ctx context.Context, req *fuse.RemoveRequest) error

func (*Node) Removexattr

func (node *Node) Removexattr(ctx context.Context, req *fuse.RemovexattrRequest) error

func (*Node) Rename

func (node *Node) Rename(ctx context.Context, req *fuse.RenameRequest, newDir types.Node) error

func (*Node) Setattr

func (node *Node) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error

func (*Node) Setxattr

func (node *Node) Setxattr(ctx context.Context, req *fuse.SetxattrRequest) error

func (*Node) String

func (node *Node) String() string
func (node *Node) Symlink(ctx context.Context, req *fuse.SymlinkRequest) (types.Node, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL