Versions in this module Expand all Collapse all v1 v1.1.1 Jan 18, 2016 v1.0.8 Nov 7, 2015 v1.0.7 Oct 29, 2015 Changes in this version type FakeEtcdClient + HideExpires bool v1.0.6 Sep 13, 2015 v1.0.5 Aug 24, 2015 Changes in this version + const EtcdErrorCodeNodeExist + const EtcdErrorCodeNotFound + const EtcdErrorCodeTestFailed + const EtcdErrorCodeValueRequired + var EtcdErrorNodeExist = &etcd.EtcdError + var EtcdErrorNotFound = &etcd.EtcdError + var EtcdErrorTestFailed = &etcd.EtcdError + var EtcdErrorValueRequired = &etcd.EtcdError + type EtcdClient interface + CompareAndSwap func(key, value string, ttl uint64, prevValue string, prevIndex uint64) (*etcd.Response, error) + Create func(key, value string, ttl uint64) (*etcd.Response, error) + Delete func(key string, recursive bool) (*etcd.Response, error) + Get func(key string, sort, recursive bool) (*etcd.Response, error) + GetCluster func() []string + Set func(key, value string, ttl uint64) (*etcd.Response, error) + Watch func(prefix string, waitIndex uint64, recursive bool, receiver chan *etcd.Response, ...) (*etcd.Response, error) + type EtcdResponseWithError struct + E error + N *EtcdResponseWithError + R *etcd.Response + type FakeEtcdClient struct + CasErr error + ChangeIndex uint64 + Data map[string]EtcdResponseWithError + DeletedKeys []string + Err error + Ix int + LastSetTTL uint64 + Machines []string + TestIndex bool + WatchImmediateError error + WatchIndex uint64 + WatchInjectError chan<- error + WatchResponse chan *etcd.Response + WatchStop chan<- bool + func NewFakeEtcdClient(t TestLogger) *FakeEtcdClient + func (f *FakeEtcdClient) CompareAndSwap(key, value string, ttl uint64, prevValue string, prevIndex uint64) (*etcd.Response, error) + func (f *FakeEtcdClient) Create(key, value string, ttl uint64) (*etcd.Response, error) + func (f *FakeEtcdClient) Delete(key string, recursive bool) (*etcd.Response, error) + func (f *FakeEtcdClient) ExpectNotFoundGet(key string) + func (f *FakeEtcdClient) Get(key string, sort, recursive bool) (*etcd.Response, error) + func (f *FakeEtcdClient) GetCluster() []string + func (f *FakeEtcdClient) NewError(code int) *etcd.EtcdError + func (f *FakeEtcdClient) Set(key, value string, ttl uint64) (*etcd.Response, error) + func (f *FakeEtcdClient) SetError(err error) + func (f *FakeEtcdClient) WaitForWatchCompletion() + func (f *FakeEtcdClient) Watch(prefix string, waitIndex uint64, recursive bool, receiver chan *etcd.Response, ...) (*etcd.Response, error) + type TestLogger interface + Errorf func(format string, args ...interface{}) + Fatalf func(format string, args ...interface{}) + Logf func(format string, args ...interface{})