Documentation ¶
Index ¶
- type Client
- type MockClient
- func (_m *MockClient) EXPECT() *_MockClientRecorder
- func (_m *MockClient) KV() (kv.Store, error)
- func (_m *MockClient) Services(_param0 services.OverrideOptions) (services.Services, error)
- func (_m *MockClient) Store(_param0 kv.OverrideOptions) (kv.Store, error)
- func (_m *MockClient) Txn() (kv.TxnStore, error)
- func (_m *MockClient) TxnStore(_param0 kv.OverrideOptions) (kv.TxnStore, error)
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
}
Mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *_MockClientRecorder
func (*MockClient) Services ¶
func (_m *MockClient) Services(_param0 services.OverrideOptions) (services.Services, error)
func (*MockClient) Store ¶
func (_m *MockClient) Store(_param0 kv.OverrideOptions) (kv.Store, error)
func (*MockClient) TxnStore ¶
func (_m *MockClient) TxnStore(_param0 kv.OverrideOptions) (kv.TxnStore, error)
Click to show internal directories.
Click to hide internal directories.