Documentation ¶
Overview ¶
Package client is a generated GoMock package.
Index ¶
- type Client
- type MockClient
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) KV() (kv.Store, error)
- func (m *MockClient) Services(arg0 services.OverrideOptions) (services.Services, error)
- func (m *MockClient) Store(arg0 kv.OverrideOptions) (kv.Store, error)
- func (m *MockClient) Txn() (kv.TxnStore, error)
- func (m *MockClient) TxnStore(arg0 kv.OverrideOptions) (kv.TxnStore, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) KV() *gomock.Call
- func (mr *MockClientMockRecorder) Services(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Store(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Txn() *gomock.Call
- func (mr *MockClientMockRecorder) TxnStore(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Services returns access to the set of services. Services(opts services.OverrideOptions) (services.Services, error) // KV returns access to the distributed configuration store. // To be deprecated. KV() (kv.Store, error) // Txn returns access to the transaction store. // To be deprecated. Txn() (kv.TxnStore, error) // Store returns access to the distributed configuration store with a namespace. Store(opts kv.OverrideOptions) (kv.Store, error) // TxnStore returns access to the transaction store with a namespace. TxnStore(opts kv.OverrideOptions) (kv.TxnStore, error) }
Client is the base interface into the cluster management system, providing access to cluster services.
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) Services ¶
func (m *MockClient) Services(arg0 services.OverrideOptions) (services.Services, error)
Services mocks base method.
func (*MockClient) Store ¶
func (m *MockClient) Store(arg0 kv.OverrideOptions) (kv.Store, error)
Store mocks base method.
func (*MockClient) TxnStore ¶
func (m *MockClient) TxnStore(arg0 kv.OverrideOptions) (kv.TxnStore, error)
TxnStore mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) KV ¶
func (mr *MockClientMockRecorder) KV() *gomock.Call
KV indicates an expected call of KV.
func (*MockClientMockRecorder) Services ¶
func (mr *MockClientMockRecorder) Services(arg0 interface{}) *gomock.Call
Services indicates an expected call of Services.
func (*MockClientMockRecorder) Store ¶
func (mr *MockClientMockRecorder) Store(arg0 interface{}) *gomock.Call
Store indicates an expected call of Store.
func (*MockClientMockRecorder) Txn ¶
func (mr *MockClientMockRecorder) Txn() *gomock.Call
Txn indicates an expected call of Txn.
func (*MockClientMockRecorder) TxnStore ¶
func (mr *MockClientMockRecorder) TxnStore(arg0 interface{}) *gomock.Call
TxnStore indicates an expected call of TxnStore.