mock_etcd

package
v0.0.0-...-06f494d Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_etcd is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockKV

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

MockKV is a mock of KV interface

func NewMockKV

func NewMockKV(ctrl *gomock.Controller) *MockKV

NewMockKV creates a new mock instance

func (*MockKV) Compact

func (m *MockKV) Compact(arg0 context.Context, arg1 int64, arg2 ...clientv3.CompactOption) (*clientv3.CompactResponse, error)

Compact mocks base method

func (*MockKV) Delete

func (m *MockKV) Delete(arg0 context.Context, arg1 string, arg2 ...clientv3.OpOption) (*clientv3.DeleteResponse, error)

Delete mocks base method

func (*MockKV) Do

func (m *MockKV) Do(arg0 context.Context, arg1 clientv3.Op) (clientv3.OpResponse, error)

Do mocks base method

func (*MockKV) EXPECT

func (m *MockKV) EXPECT() *MockKVMockRecorder

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

func (*MockKV) Get

func (m *MockKV) Get(arg0 context.Context, arg1 string, arg2 ...clientv3.OpOption) (*clientv3.GetResponse, error)

Get mocks base method

func (*MockKV) Put

func (m *MockKV) Put(arg0 context.Context, arg1, arg2 string, arg3 ...clientv3.OpOption) (*clientv3.PutResponse, error)

Put mocks base method

func (*MockKV) Txn

func (m *MockKV) Txn(arg0 context.Context) clientv3.Txn

Txn mocks base method

type MockKVMockRecorder

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

MockKVMockRecorder is the mock recorder for MockKV

func (*MockKVMockRecorder) Compact

func (mr *MockKVMockRecorder) Compact(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Compact indicates an expected call of Compact

func (*MockKVMockRecorder) Delete

func (mr *MockKVMockRecorder) Delete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockKVMockRecorder) Do

func (mr *MockKVMockRecorder) Do(arg0, arg1 interface{}) *gomock.Call

Do indicates an expected call of Do

func (*MockKVMockRecorder) Get

func (mr *MockKVMockRecorder) Get(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockKVMockRecorder) Put

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

Put indicates an expected call of Put

func (*MockKVMockRecorder) Txn

func (mr *MockKVMockRecorder) Txn(arg0 interface{}) *gomock.Call

Txn indicates an expected call of Txn

type MockLease

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

MockLease is a mock of Lease interface

func NewMockLease

func NewMockLease(ctrl *gomock.Controller) *MockLease

NewMockLease creates a new mock instance

func (*MockLease) Close

func (m *MockLease) Close() error

Close mocks base method

func (*MockLease) EXPECT

func (m *MockLease) EXPECT() *MockLeaseMockRecorder

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

func (*MockLease) Grant

func (m *MockLease) Grant(arg0 context.Context, arg1 int64) (*clientv3.LeaseGrantResponse, error)

Grant mocks base method

func (*MockLease) KeepAlive

func (m *MockLease) KeepAlive(arg0 context.Context, arg1 clientv3.LeaseID) (<-chan *clientv3.LeaseKeepAliveResponse, error)

KeepAlive mocks base method

func (*MockLease) KeepAliveOnce

func (m *MockLease) KeepAliveOnce(arg0 context.Context, arg1 clientv3.LeaseID) (*clientv3.LeaseKeepAliveResponse, error)

KeepAliveOnce mocks base method

func (*MockLease) Leases

Leases mocks base method

func (*MockLease) Revoke

Revoke mocks base method

func (*MockLease) TimeToLive

TimeToLive mocks base method

type MockLeaseMockRecorder

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

MockLeaseMockRecorder is the mock recorder for MockLease

func (*MockLeaseMockRecorder) Close

func (mr *MockLeaseMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockLeaseMockRecorder) Grant

func (mr *MockLeaseMockRecorder) Grant(arg0, arg1 interface{}) *gomock.Call

Grant indicates an expected call of Grant

func (*MockLeaseMockRecorder) KeepAlive

func (mr *MockLeaseMockRecorder) KeepAlive(arg0, arg1 interface{}) *gomock.Call

KeepAlive indicates an expected call of KeepAlive

func (*MockLeaseMockRecorder) KeepAliveOnce

func (mr *MockLeaseMockRecorder) KeepAliveOnce(arg0, arg1 interface{}) *gomock.Call

KeepAliveOnce indicates an expected call of KeepAliveOnce

func (*MockLeaseMockRecorder) Leases

func (mr *MockLeaseMockRecorder) Leases(arg0 interface{}) *gomock.Call

Leases indicates an expected call of Leases

func (*MockLeaseMockRecorder) Revoke

func (mr *MockLeaseMockRecorder) Revoke(arg0, arg1 interface{}) *gomock.Call

Revoke indicates an expected call of Revoke

func (*MockLeaseMockRecorder) TimeToLive

func (mr *MockLeaseMockRecorder) TimeToLive(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

TimeToLive indicates an expected call of TimeToLive

type MockWatcher

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

MockWatcher is a mock of Watcher interface

func NewMockWatcher

func NewMockWatcher(ctrl *gomock.Controller) *MockWatcher

NewMockWatcher creates a new mock instance

func (*MockWatcher) Close

func (m *MockWatcher) Close() error

Close mocks base method

func (*MockWatcher) EXPECT

func (m *MockWatcher) EXPECT() *MockWatcherMockRecorder

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

func (*MockWatcher) Watch

func (m *MockWatcher) Watch(arg0 context.Context, arg1 string, arg2 ...clientv3.OpOption) clientv3.WatchChan

Watch mocks base method

type MockWatcherMockRecorder

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

MockWatcherMockRecorder is the mock recorder for MockWatcher

func (*MockWatcherMockRecorder) Close

func (mr *MockWatcherMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockWatcherMockRecorder) Watch

func (mr *MockWatcherMockRecorder) 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