fs

package
v0.0.0-...-a8d4a86 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2016 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	pathfs.FileSystem
	// contains filtered or unexported fields
}

func NewKVFS

func NewKVFS(opts Options) (*FS, error)

func (*FS) Create

func (fs *FS) Create(name string, _ uint32, _ uint32, _ *fuse.Context) (nodefs.File, fuse.Status)

func (*FS) GetAttr

func (fs *FS) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)

func (*FS) Mkdir

func (fs *FS) Mkdir(name string, mode uint32, context *fuse.Context) fuse.Status

func (*FS) NewServer

func (fs *FS) NewServer(mountPoint string) (*fuse.Server, error)

func (*FS) Open

func (fs *FS) Open(name string, flags uint32, context *fuse.Context) (nodefs.File, fuse.Status)

func (*FS) OpenDir

func (fs *FS) OpenDir(name string, context *fuse.Context) ([]fuse.DirEntry, fuse.Status)

func (*FS) Rename

func (fs *FS) Rename(oldName string, newName string, context *fuse.Context) fuse.Status

func (*FS) Rmdir

func (fs *FS) Rmdir(name string, context *fuse.Context) fuse.Status

func (*FS) StatFs

func (fs *FS) StatFs(name string) *fuse.StatfsOut

func (*FS) String

func (fs *FS) String() string

func (*FS) Truncate

func (fs *FS) Truncate(name string, size uint64, context *fuse.Context) fuse.Status
func (fs *FS) Unlink(name string, context *fuse.Context) fuse.Status

type Options

type Options struct {
	Store  string
	Addrs  []string
	Root   string
	Config store.Config
}

Jump to

Keyboard shortcuts

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