fs

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

FS and represents the data on the file system

func New

func New(path string) *FS

New creates a FS from the local etcd filesystem

func (*FS) KeyValuePairs

func (fs *FS) KeyValuePairs(namespace string, includeDirs bool) ([]keyvalue.KeyValue, error)

KeyValuePairs returns a list key value pairs recursively under the namespace. If includeDirs is true, then the results will include the directories

func (*FS) Set

func (fs *FS) Set(keyValue keyvalue.KeyValue) error

Set sets the keyValue on the local fs

func (*FS) SetAll

func (fs *FS) SetAll(keyValues []keyvalue.KeyValue) error

SetAll sets all keyValues on the local fs

Jump to

Keyboard shortcuts

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