nfs

package
v0.0.0-...-8e9556d Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FSTYPE_DEFAULT   = ""
	FSTYYPE_LOOPBACK = "loopback"
	FSTYPE_DB        = "db"
	FSTYPE_DEBUG     = "debug"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFS

type ClientFS struct {
	Local        fs.InodeEmbedder
	Manager      *server.Manager
	Options      Options
	LocalOptions *fs.Options
}

func NewClient

func NewClient(opt ...Option) (sfs *ClientFS, err error)

func (*ClientFS) Mount

func (sfs *ClientFS) Mount() (err error)

type ClientFS11

type ClientFS11 struct {
	Local fs.InodeEmbedder
}

type ClientNode

type ClientNode struct {
	fs.LoopbackNode
	M *client.Manager
}

func (*ClientNode) Create

func (n *ClientNode) Create(ctx context.Context, name string, flags uint32, mode uint32, out *fuse.EntryOut) (inode *fs.Inode, fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)

func (*ClientNode) Lookup

func (n *ClientNode) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)

func (*ClientNode) Mkdir

func (n *ClientNode) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)

func (*ClientNode) Mknod

func (n *ClientNode) Mknod(ctx context.Context, name string, mode, rdev uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)

func (*ClientNode) OnAdd

func (n *ClientNode) OnAdd(ctx context.Context)

func (*ClientNode) Readdir

func (n *ClientNode) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno)

func (*ClientNode) Rename

func (n *ClientNode) Rename(ctx context.Context, name string, newParent fs.InodeEmbedder, newName string, flags uint32) syscall.Errno

type FSTYPE

type FSTYPE string

type Option

type Option func(*Options)

func FSType

func FSType(s string) Option

func FuseName

func FuseName(s string) Option

func LBPath

func LBPath(s string) Option

func MountPoint

func MountPoint(m string) Option

func ServerAddr

func ServerAddr(s string) Option

type Options

type Options struct {
	MountPoint   string
	FSType       FSTYPE
	LookBackPath string
	FuseName     string
	ServerAddr   string
}

func NewOptions

func NewOptions(opt ...Option) Options

type Storage

type Storage interface {
	Statfs(ctx context.Context) (syscall.Statfs_t, error)
}

Jump to

Keyboard shortcuts

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