fs

package
v0.0.0-...-cf45389 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

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

func NewFileSystem

func NewFileSystem(host string, port int, opts ...FileSystemOption) (*FileSystem, error)

func (*FileSystem) Root

func (f *FileSystem) Root() (fusefs.Node, error)

func (*FileSystem) Statfs

func (f *FileSystem) Statfs(
	ctx context.Context,
	req *fuse.StatfsRequest,
	res *fuse.StatfsResponse,
) error

type FileSystemOption

type FileSystemOption func(*FileSystem)

func WithFuseDebugLogs

func WithFuseDebugLogs(fuseDebug bool) FileSystemOption

func WithLogger

func WithLogger(logger logging.Logger) FileSystemOption

type TagDir

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

func (*TagDir) Attr

func (td *TagDir) Attr(ctx context.Context, attr *fuse.Attr) error

func (*TagDir) Create

func (td *TagDir) Create(
	ctx context.Context,
	req *fuse.CreateRequest,
	res *fuse.CreateResponse,
) (fs.Node, fs.Handle, error)

func (*TagDir) Lookup

func (td *TagDir) Lookup(ctx context.Context, name string) (fusefs.Node, error)

func (*TagDir) ReadDirAll

func (td *TagDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

func (*TagDir) Remove

func (td *TagDir) Remove(
	ctx context.Context,
	req *fuse.RemoveRequest,
) error

func (*TagDir) Rename

func (td *TagDir) Rename(
	ctx context.Context,
	req *fuse.RenameRequest,
	newDir fusefs.Node,
) error

Jump to

Keyboard shortcuts

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