mock

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

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) Close

func (m *MockEtcdClient) Close() error

Close mocks base method.

func (*MockEtcdClient) Compact

Compact mocks base method.

func (*MockEtcdClient) Delete

Delete mocks base method.

func (*MockEtcdClient) Do

Do mocks base method.

func (*MockEtcdClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEtcdClient) Get

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.

func (*MockEtcdClient) Txn

Txn mocks base method.

func (*MockEtcdClient) Watch

Watch 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL