Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorKeyNotFound = 100 ErrorNodeExist = 105 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdClient ¶
type EtcdClient interface { Create(key string, value string, ttl uint64) (*etcd.Response, error) CompareAndSwap(key string, value string, ttl uint64, prevValue string, prevIndex uint64) (*etcd.Response, error) Get(key string, sort, recursive bool) (*etcd.Response, error) }
EtcdClient is a simple wrapper around the underlying etcd client to facilitate testing and minimize the interface between locksmith and the actual etcd client
Click to show internal directories.
Click to hide internal directories.