etcdfs

package
v0.0.0-...-1eeace3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcdFile

func NewEtcdFile(client *etcd.Client, path string) nodefs.File

func NewTestEtcdFsMount

func NewTestEtcdFsMount() testEtcdFsMount

Types

type EtcdFs

type EtcdFs struct {
	pathfs.FileSystem
	EtcdEndpoint string
}

func (*EtcdFs) Create

func (me *EtcdFs) Create(name string, flags uint32, mode uint32, context *fuse.Context) (file nodefs.File, code fuse.Status)

func (*EtcdFs) GetAttr

func (me *EtcdFs) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)

func (*EtcdFs) Mkdir

func (me *EtcdFs) Mkdir(name string, mode uint32, context *fuse.Context) fuse.Status

func (*EtcdFs) NewEtcdClient

func (me *EtcdFs) NewEtcdClient() *etcd.Client

func (*EtcdFs) Open

func (me *EtcdFs) Open(name string, flags uint32, context *fuse.Context) (file nodefs.File, code fuse.Status)

func (*EtcdFs) OpenDir

func (me *EtcdFs) OpenDir(name string, context *fuse.Context) (c []fuse.DirEntry, code fuse.Status)

func (*EtcdFs) Rmdir

func (me *EtcdFs) Rmdir(name string, context *fuse.Context) (code fuse.Status)
func (me *EtcdFs) Unlink(name string, context *fuse.Context) (code fuse.Status)

Jump to

Keyboard shortcuts

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