fuse

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Service store.Service

	MountPoint string
	ReadOnly   bool
}

type Dir

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

Dir implements both Node and Handle for the hello file.

func (*Dir) Attr

func (d *Dir) Attr(_ context.Context, a *fuse.Attr) error

func (*Dir) Lookup

func (d *Dir) Lookup(ctx context.Context, name string) (fusefs.Node, error)

func (*Dir) ReadDirAll

func (d *Dir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

type FS

type FS interface {
	Serve(ctx context.Context) error
}

func New

func New(
	config Config,
) FS

type File

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

File implements both Node and Handle for the hello file.

func (*File) Attr

func (f *File) Attr(ctx context.Context, a *fuse.Attr) error

func (*File) Flush

func (f *File) Flush(ctx context.Context, _ *fuse.FlushRequest) error

func (*File) ReadAll

func (f *File) ReadAll(ctx context.Context) ([]byte, error)

func (*File) Write

func (f *File) Write(_ context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error

Jump to

Keyboard shortcuts

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