etcd

package
v0.0.0-...-d8c34b0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DIR_FILE_SEPARATOR = byte(0x00)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdStore

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

func (*EtcdStore) BeginTransaction

func (store *EtcdStore) BeginTransaction(ctx context.Context) (context.Context, error)

func (*EtcdStore) CommitTransaction

func (store *EtcdStore) CommitTransaction(ctx context.Context) error

func (*EtcdStore) DeleteEntry

func (store *EtcdStore) DeleteEntry(ctx context.Context, fullpath filer2.FullPath) (err error)

func (*EtcdStore) FindEntry

func (store *EtcdStore) FindEntry(ctx context.Context, fullpath filer2.FullPath) (entry *filer2.Entry, err error)

func (*EtcdStore) GetName

func (store *EtcdStore) GetName() string

func (*EtcdStore) Initialize

func (store *EtcdStore) Initialize(configuration weed_util.Configuration) (err error)

func (*EtcdStore) InsertEntry

func (store *EtcdStore) InsertEntry(ctx context.Context, entry *filer2.Entry) (err error)

func (*EtcdStore) ListDirectoryEntries

func (store *EtcdStore) ListDirectoryEntries(
	ctx context.Context, fullpath filer2.FullPath, startFileName string, inclusive bool, limit int,
) (entries []*filer2.Entry, err error)

func (*EtcdStore) RollbackTransaction

func (store *EtcdStore) RollbackTransaction(ctx context.Context) error

func (*EtcdStore) UpdateEntry

func (store *EtcdStore) UpdateEntry(ctx context.Context, entry *filer2.Entry) (err error)

Jump to

Keyboard shortcuts

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