Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type EtcdClient
- type MockEtcdClient
- func (m *MockEtcdClient) Close() error
- func (m *MockEtcdClient) Compact(ctx context.Context, rev int64, opts ...clientv3.CompactOption) (*clientv3.CompactResponse, error)
- func (m *MockEtcdClient) Delete(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.DeleteResponse, error)
- func (m *MockEtcdClient) Do(ctx context.Context, op clientv3.Op) (clientv3.OpResponse, error)
- func (m *MockEtcdClient) EXPECT() *MockEtcdClientMockRecorder
- func (m *MockEtcdClient) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error)
- func (m *MockEtcdClient) Put(ctx context.Context, key, val string, opts ...clientv3.OpOption) (*clientv3.PutResponse, error)
- func (m *MockEtcdClient) RequestProgress(ctx context.Context) error
- func (m *MockEtcdClient) Txn(ctx context.Context) clientv3.Txn
- func (m *MockEtcdClient) Watch(ctx context.Context, key string, opts ...clientv3.OpOption) clientv3.WatchChan
- type MockEtcdClientMockRecorder
- func (mr *MockEtcdClientMockRecorder) Close() *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Compact(ctx, rev interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Delete(ctx, key interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Do(ctx, op interface{}) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Get(ctx, key interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Put(ctx, key, val interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) RequestProgress(ctx interface{}) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Txn(ctx interface{}) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Watch(ctx, key interface{}, opts ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdClient ¶
type EtcdClient interface { clientv3.KV clientv3.Watcher }
type MockEtcdClient ¶
type MockEtcdClient struct {
// contains filtered or unexported fields
}
MockEtcdClient is a mock of EtcdClient interface.
func NewMockEtcdClient ¶
func NewMockEtcdClient(ctrl *gomock.Controller) *MockEtcdClient
NewMockEtcdClient creates a new mock instance.
func (*MockEtcdClient) Compact ¶
func (m *MockEtcdClient) Compact(ctx context.Context, rev int64, opts ...clientv3.CompactOption) (*clientv3.CompactResponse, error)
Compact mocks base method.
func (*MockEtcdClient) Delete ¶
func (m *MockEtcdClient) Delete(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.DeleteResponse, error)
Delete mocks base method.
func (*MockEtcdClient) Do ¶
func (m *MockEtcdClient) Do(ctx context.Context, op clientv3.Op) (clientv3.OpResponse, error)
Do mocks base method.
func (*MockEtcdClient) EXPECT ¶
func (m *MockEtcdClient) EXPECT() *MockEtcdClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEtcdClient) Get ¶
func (m *MockEtcdClient) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error)
Get mocks base method.
func (*MockEtcdClient) Put ¶
func (m *MockEtcdClient) Put(ctx context.Context, key, val string, opts ...clientv3.OpOption) (*clientv3.PutResponse, error)
Put mocks base method.
func (*MockEtcdClient) RequestProgress ¶
func (m *MockEtcdClient) RequestProgress(ctx context.Context) error
RequestProgress mocks base method.
type MockEtcdClientMockRecorder ¶
type MockEtcdClientMockRecorder struct {
// contains filtered or unexported fields
}
MockEtcdClientMockRecorder is the mock recorder for MockEtcdClient.
func (*MockEtcdClientMockRecorder) Close ¶
func (mr *MockEtcdClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockEtcdClientMockRecorder) Compact ¶
func (mr *MockEtcdClientMockRecorder) Compact(ctx, rev interface{}, opts ...interface{}) *gomock.Call
Compact indicates an expected call of Compact.
func (*MockEtcdClientMockRecorder) Delete ¶
func (mr *MockEtcdClientMockRecorder) Delete(ctx, key interface{}, opts ...interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockEtcdClientMockRecorder) Do ¶
func (mr *MockEtcdClientMockRecorder) Do(ctx, op interface{}) *gomock.Call
Do indicates an expected call of Do.
func (*MockEtcdClientMockRecorder) Get ¶
func (mr *MockEtcdClientMockRecorder) Get(ctx, key interface{}, opts ...interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockEtcdClientMockRecorder) Put ¶
func (mr *MockEtcdClientMockRecorder) Put(ctx, key, val interface{}, opts ...interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockEtcdClientMockRecorder) RequestProgress ¶
func (mr *MockEtcdClientMockRecorder) RequestProgress(ctx interface{}) *gomock.Call
RequestProgress indicates an expected call of RequestProgress.
func (*MockEtcdClientMockRecorder) Txn ¶
func (mr *MockEtcdClientMockRecorder) Txn(ctx interface{}) *gomock.Call
Txn indicates an expected call of Txn.
func (*MockEtcdClientMockRecorder) Watch ¶
func (mr *MockEtcdClientMockRecorder) Watch(ctx, key interface{}, opts ...interface{}) *gomock.Call
Watch indicates an expected call of Watch.