etcdfs

package
Version: v0.0.0-...-82fe5f0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2015 License: Apache-2.0 Imports: 12 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
	// contains filtered or unexported fields
}

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) Rename

func (me *EtcdFs) Rename(oldName string, newName string, context *fuse.Context) (code fuse.Status)

TODO: Error handling.

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL