Versions in this module Expand all Collapse all v0 v0.5.1 Aug 15, 2017 v0.5.0 Aug 8, 2017 Changes in this version + type MockContext struct + func (m *MockContext) AddMembers(members []string) + func (m *MockContext) Client(initialNodes []string) (client.Client, error) + func (m *MockContext) KeysAPI() (client.KeysAPI, error) + func (m *MockContext) Members() ([]string, types.URLsMap, error) + func (m *MockContext) MembersAPI() (client.MembersAPI, error) + type MockEmbeddedEtcdFactory struct + func (m *MockEmbeddedEtcdFactory) NewEmbeddedEtcd(token string, conf *bootstrap.Config, newCluster bool) (*bootstrap.EmbeddedEtcd, error) + type MockMembersAPI struct + func (m *MockMembersAPI) Add(ctx ctx.Context, peerURL string) (*client.Member, error) + func (m *MockMembersAPI) Leader(ctx ctx.Context) (*client.Member, error) + func (m *MockMembersAPI) List(ctx ctx.Context) ([]client.Member, error) + func (m *MockMembersAPI) Remove(ctx ctx.Context, mID string) error + func (m *MockMembersAPI) Update(ctx ctx.Context, mID string, peerURLs []string) error