etcdv3

package
v0.0.0-...-676442f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 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 EtcdV3

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

func (*EtcdV3) Delete

func (etcdcli *EtcdV3) Delete(res *clientv3.GetResponse) error

func (*EtcdV3) DeleteAndSetKey

func (etcdcli *EtcdV3) DeleteAndSetKey(keyOld, keyNew, value string) error

Create implements storage.Interface.Creat

func (*EtcdV3) DeleteKeys

func (etcdcli *EtcdV3) DeleteKeys(keys []string) error

Create implements storage.Interface.Creat

func (*EtcdV3) DoDelete

func (etcdcli *EtcdV3) DoDelete(key string) error

func (*EtcdV3) Get

func (etcdcli *EtcdV3) Get(key string, recursive bool) (*clientv3.GetResponse, error)

Get implements storage.Interface.Get.

func (*EtcdV3) InitEtcd

func (etcdcli *EtcdV3) InitEtcd(etcdServerList []string, etcdCertfile, etcdKeyFile, etcdCafile string) error

func (*EtcdV3) Set

func (etcdcli *EtcdV3) Set(key string, val string) error

Create implements storage.Interface.Creat

func (*EtcdV3) SetKeys

func (etcdcli *EtcdV3) SetKeys(keys []string, vals []string) error

Create implements storage.Interface.Creat

func (*EtcdV3) Update

func (etcdcli *EtcdV3) Update(key string, val string, valPre string) error

func (*EtcdV3) Watch

func (s *EtcdV3) Watch(ctx context.Context, key string, opts ...clientv3.OpOption) clientv3.WatchChan

Jump to

Keyboard shortcuts

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