etcdmock

package
v0.0.0-...-5168a6d Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEtcdAPI

type MockEtcdAPI struct {
	// contains filtered or unexported fields
}

MockEtcdAPI is a mock of EtcdAPI interface

func NewMockEtcdAPI

func NewMockEtcdAPI(ctrl *gomock.Controller) *MockEtcdAPI

NewMockEtcdAPI creates a new mock instance

func (*MockEtcdAPI) Compact

func (_m *MockEtcdAPI) Compact(_param0 context.Context, _param1 int64, _param2 ...clientv3.CompactOption) (*clientv3.CompactResponse, error)

Compact mocks base method

func (*MockEtcdAPI) Delete

func (_m *MockEtcdAPI) Delete(_param0 context.Context, _param1 string, _param2 ...clientv3.OpOption) (*clientv3.DeleteResponse, error)

Delete mocks base method

func (*MockEtcdAPI) Do

func (_m *MockEtcdAPI) Do(_param0 context.Context, _param1 clientv3.Op) (clientv3.OpResponse, error)

Do mocks base method

func (*MockEtcdAPI) EXPECT

func (_m *MockEtcdAPI) EXPECT() *MockEtcdAPIMockRecorder

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

func (*MockEtcdAPI) Get

func (_m *MockEtcdAPI) Get(_param0 context.Context, _param1 string, _param2 ...clientv3.OpOption) (*clientv3.GetResponse, error)

Get mocks base method

func (*MockEtcdAPI) Put

func (_m *MockEtcdAPI) Put(_param0 context.Context, _param1 string, _param2 string, _param3 ...clientv3.OpOption) (*clientv3.PutResponse, error)

Put mocks base method

func (*MockEtcdAPI) Txn

func (_m *MockEtcdAPI) Txn(_param0 context.Context) clientv3.Txn

Txn mocks base method

func (*MockEtcdAPI) Watch

func (_m *MockEtcdAPI) Watch(_param0 context.Context, _param1 string, _param2 ...clientv3.OpOption) clientv3.WatchChan

Watch mocks base method

type MockEtcdAPIMockRecorder

type MockEtcdAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockEtcdAPIMockRecorder is the mock recorder for MockEtcdAPI

func (*MockEtcdAPIMockRecorder) Compact

func (_mr *MockEtcdAPIMockRecorder) Compact(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Compact indicates an expected call of Compact

func (*MockEtcdAPIMockRecorder) Delete

func (_mr *MockEtcdAPIMockRecorder) Delete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockEtcdAPIMockRecorder) Do

func (_mr *MockEtcdAPIMockRecorder) Do(arg0, arg1 interface{}) *gomock.Call

Do indicates an expected call of Do

func (*MockEtcdAPIMockRecorder) Get

func (_mr *MockEtcdAPIMockRecorder) Get(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockEtcdAPIMockRecorder) Put

func (_mr *MockEtcdAPIMockRecorder) Put(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Put indicates an expected call of Put

func (*MockEtcdAPIMockRecorder) Txn

func (_mr *MockEtcdAPIMockRecorder) Txn(arg0 interface{}) *gomock.Call

Txn indicates an expected call of Txn

func (*MockEtcdAPIMockRecorder) Watch

func (_mr *MockEtcdAPIMockRecorder) Watch(arg0, arg1 interface{}, arg2 ...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