etcd

package
v0.0.0-...-5c6c1e7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 10 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 weed_util.FullPath) (err error)

func (*EtcdStore) DeleteFolderChildren

func (store *EtcdStore) DeleteFolderChildren(ctx context.Context, fullpath weed_util.FullPath) (err error)

func (*EtcdStore) FindEntry

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

func (*EtcdStore) GetName

func (store *EtcdStore) GetName() string

func (*EtcdStore) Initialize

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

func (*EtcdStore) InsertEntry

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

func (*EtcdStore) KvDelete

func (store *EtcdStore) KvDelete(ctx context.Context, key []byte) (err error)

func (*EtcdStore) KvGet

func (store *EtcdStore) KvGet(ctx context.Context, key []byte) (value []byte, err error)

func (*EtcdStore) KvPut

func (store *EtcdStore) KvPut(ctx context.Context, key []byte, value []byte) (err error)

func (*EtcdStore) ListDirectoryEntries

func (store *EtcdStore) ListDirectoryEntries(ctx context.Context, dirPath weed_util.FullPath, startFileName string, includeStartFile bool, limit int64, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error)

func (*EtcdStore) ListDirectoryPrefixedEntries

func (store *EtcdStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPath weed_util.FullPath, startFileName string, includeStartFile bool, limit int64, prefix string, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error)

func (*EtcdStore) RollbackTransaction

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

func (*EtcdStore) Shutdown

func (store *EtcdStore) Shutdown()

func (*EtcdStore) UpdateEntry

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

Jump to

Keyboard shortcuts

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