mount

package
v0.0.0-...-d5198cb Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Name = "guardian"
	Type = "guardian"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	File     IO
	Database *database.Database
}

type Dir

type Dir struct {
	Inode    uint64
	File     IO
	Database *database.Database
}

func (*Dir) Attr

func (d *Dir) Attr(ctx context.Context, atr *fuse.Attr) (err error)

func (*Dir) Create

func (d *Dir) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (node fs.Node, h fs.Handle, err error)

func (*Dir) Lookup

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

func (*Dir) ReadDirAll

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

type FS

type FS struct {
	File     IO
	Database *database.Database
}

func New

func New(config Config) (f *FS, err error)

func (*FS) Root

func (f *FS) Root() (node fs.Node, err error)

type File

type File struct {
	Name  string
	Inode uint64

	File     IO
	Database *database.Database
}

func (*File) Attr

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

func (*File) Open

func (f *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (h fs.Handle, err error)

func (*File) ReadAll

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

type Handle

type Handle struct {
	Name string

	Buffer   []byte
	File     IO
	Database *database.Database
}

func (*Handle) Read

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

func (*Handle) Release

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

func (*Handle) Write

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

type IO

type IO interface {
	io.WriteSeeker
	Sync() (err error)
}

Jump to

Keyboard shortcuts

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