nfsd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrShareNotFound = func(share string) error { return fmt.Errorf("share not found: %s", share) }
)

Functions

func NewMapperFS added in v0.0.2

func NewMapperFS(cfg Config) billy.Filesystem

func Serve

func Serve(addr string, fs billy.Filesystem) error

Types

type Config added in v0.0.2

type Config struct {
	Global  string
	Regions map[string]s3.S3Config
}

func (Config) Open added in v0.0.2

func (cfg Config) Open() (billy.Filesystem, error)

type MapperFS added in v0.0.2

type MapperFS struct {
	noop.NoOP
	// contains filtered or unexported fields
}

func (*MapperFS) Open added in v0.0.2

func (m *MapperFS) Open(filename string) (billy.File, error)

Open implements billy.Filesystem.

func (*MapperFS) OpenFile added in v0.0.2

func (m *MapperFS) OpenFile(filename string, flag int, perm fs.FileMode) (billy.File, error)

OpenFile implements billy.Filesystem.

func (*MapperFS) ReadDir added in v0.0.2

func (m *MapperFS) ReadDir(path string) ([]fs.FileInfo, error)

ReadDir implements billy.Filesystem.

func (*MapperFS) Resolve added in v0.0.2

func (m *MapperFS) Resolve(filename string) (lfs billy.Filesystem, p string, err error)

func (*MapperFS) Stat added in v0.0.2

func (m *MapperFS) Stat(filename string) (fs.FileInfo, error)

Stat implements billy.Filesystem.

type ROFS

type ROFS struct {
	billy.Filesystem
}

func (ROFS) Capabilities

func (ROFS) Capabilities() billy.Capability

Capabilities exports the filesystem as readonly

Jump to

Keyboard shortcuts

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