etcd

package
v0.2.134 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdDatastore

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

func NewEtcdDatastore

func NewEtcdDatastore(endpoints []string) (*EtcdDatastore, error)

func (*EtcdDatastore) AddPrefix

func (d *EtcdDatastore) AddPrefix(prefix string) datastore.Datastore

func (EtcdDatastore) Apply

func (d EtcdDatastore) Apply(key string, pb proto.Message) error

func (EtcdDatastore) Close

func (d EtcdDatastore) Close() error

func (EtcdDatastore) Delete

func (d EtcdDatastore) Delete(key string) error

func (EtcdDatastore) Get

func (d EtcdDatastore) Get(key string, pb proto.Message) error

func (*EtcdDatastore) IsLocked

func (m *EtcdDatastore) IsLocked(key string) bool

func (EtcdDatastore) List

func (d EtcdDatastore) List(f func(int) []proto.Message) error

func (*EtcdDatastore) Lock

func (m *EtcdDatastore) Lock(key string) bool

func (*EtcdDatastore) Unlock

func (m *EtcdDatastore) Unlock(key string) bool

Jump to

Keyboard shortcuts

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