fs

package
v0.0.0-...-2cda34f Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeeFs

type BeeFs struct {
	fuse.FileSystemBase
	// contains filtered or unexported fields
}

func New

func New(
	st store.PutGetter,
	lk lookuper.Lookuper,
	pb publisher.Publisher,
	opts ...Option,
) (*BeeFs, error)

func (*BeeFs) Chflags

func (b *BeeFs) Chflags(path string, flags uint32) (errc int)

func (*BeeFs) Chmod

func (b *BeeFs) Chmod(path string, mode uint32) (errc int)

func (*BeeFs) Chown

func (b *BeeFs) Chown(path string, uid uint32, gid uint32) (errc int)

func (*BeeFs) Destroy

func (b *BeeFs) Destroy()

func (*BeeFs) Getattr

func (b *BeeFs) Getattr(path string, stat *fuse.Stat_t, fh uint64) (errc int)

func (*BeeFs) Getxattr

func (b *BeeFs) Getxattr(path string, name string) (errc int, xatr []byte)

func (*BeeFs) Init

func (b *BeeFs) Init()
func (b *BeeFs) Link(oldpath string, newpath string) (errc int)

func (*BeeFs) Listxattr

func (b *BeeFs) Listxattr(path string, fill func(name string) bool) (errc int)

func (*BeeFs) Mkdir

func (b *BeeFs) Mkdir(path string, mode uint32) (errc int)

func (*BeeFs) Mknod

func (b *BeeFs) Mknod(path string, mode uint32, dev uint64) (errc int)

func (*BeeFs) Open

func (b *BeeFs) Open(path string, flags int) (errc int, fh uint64)

func (*BeeFs) Opendir

func (b *BeeFs) Opendir(path string) (errc int, fh uint64)

func (*BeeFs) Read

func (b *BeeFs) Read(path string, buff []byte, ofst int64, fh uint64) (n int)

func (*BeeFs) Readdir

func (b *BeeFs) Readdir(
	path string,
	fill func(name string, stat *fuse.Stat_t, ofst int64) bool,
	ofst int64,
	fh uint64,
) (errc int)
func (b *BeeFs) Readlink(path string) (errc int, target string)

func (*BeeFs) Release

func (b *BeeFs) Release(path string, fh uint64) (errc int)

func (*BeeFs) Releasedir

func (b *BeeFs) Releasedir(path string, fh uint64) (errc int)

func (*BeeFs) Removexattr

func (b *BeeFs) Removexattr(path string, name string) (errc int)

func (*BeeFs) Rename

func (b *BeeFs) Rename(oldpath string, newpath string) (errc int)

func (*BeeFs) Rmdir

func (b *BeeFs) Rmdir(path string) (errc int)

func (*BeeFs) Setchgtime

func (b *BeeFs) Setchgtime(path string, tmsp fuse.Timespec) (errc int)

func (*BeeFs) Setcrtime

func (b *BeeFs) Setcrtime(path string, tmsp fuse.Timespec) (errc int)

func (*BeeFs) Setxattr

func (b *BeeFs) Setxattr(path string, name string, value []byte, flags int) (errc int)
func (b *BeeFs) Symlink(target string, newpath string) (errc int)

func (*BeeFs) Truncate

func (b *BeeFs) Truncate(path string, size int64, fh uint64) (errc int)
func (b *BeeFs) Unlink(path string) (errc int)

func (*BeeFs) Utimens

func (b *BeeFs) Utimens(path string, tmsp []fuse.Timespec) (errc int)

func (*BeeFs) Write

func (b *BeeFs) Write(path string, buff []byte, ofst int64, fh uint64) (n int)

type FsMetadata

type FsMetadata struct {
	Stat     fuse.Stat_t
	Xatr     map[string][]byte
	Children []string
	Links    []string
}

type Option

type Option func(*BeeFs)

func WithEncryption

func WithEncryption(val bool) Option

func WithNamespace

func WithNamespace(id string) Option

Jump to

Keyboard shortcuts

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