etcdmock

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package etcdmock is a generated GoMock package.

Package etcdmock is a generated GoMock package.

Package etcdmock 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 ...v3.CompactOption) (*v3.CompactResponse, error)

Compact mocks base method.

func (*MockKV) Delete

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

Delete mocks base method.

func (*MockKV) Do

func (m *MockKV) Do(arg0 context.Context, arg1 v3.Op) (v3.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 ...v3.OpOption) (*v3.GetResponse, error)

Get mocks base method.

func (*MockKV) Put

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

Put mocks base method.

func (*MockKV) Txn

func (m *MockKV) Txn(arg0 context.Context) v3.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) (*v3.LeaseGrantResponse, error)

Grant mocks base method.

func (*MockLease) KeepAlive

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

KeepAlive mocks base method.

func (*MockLease) KeepAliveOnce

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

KeepAliveOnce mocks base method.

func (*MockLease) Leases

func (m *MockLease) Leases(arg0 context.Context) (*v3.LeaseLeasesResponse, error)

Leases mocks base method.

func (*MockLease) Revoke

func (m *MockLease) Revoke(arg0 context.Context, arg1 v3.LeaseID) (*v3.LeaseRevokeResponse, error)

Revoke mocks base method.

func (*MockLease) TimeToLive

func (m *MockLease) TimeToLive(arg0 context.Context, arg1 v3.LeaseID, arg2 ...v3.LeaseOption) (*v3.LeaseTimeToLiveResponse, error)

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 MockTxn

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

MockTxn is a mock of Txn interface.

func NewMockTxn

func NewMockTxn(ctrl *gomock.Controller) *MockTxn

NewMockTxn creates a new mock instance.

func (*MockTxn) Commit

func (m *MockTxn) Commit() (*v3.TxnResponse, error)

Commit mocks base method.

func (*MockTxn) EXPECT

func (m *MockTxn) EXPECT() *MockTxnMockRecorder

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

func (*MockTxn) Else

func (m *MockTxn) Else(arg0 ...v3.Op) v3.Txn

Else mocks base method.

func (*MockTxn) If

func (m *MockTxn) If(arg0 ...v3.Cmp) v3.Txn

If mocks base method.

func (*MockTxn) Then

func (m *MockTxn) Then(arg0 ...v3.Op) v3.Txn

Then mocks base method.

type MockTxnMockRecorder

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

MockTxnMockRecorder is the mock recorder for MockTxn.

func (*MockTxnMockRecorder) Commit

func (mr *MockTxnMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTxnMockRecorder) Else

func (mr *MockTxnMockRecorder) Else(arg0 ...interface{}) *gomock.Call

Else indicates an expected call of Else.

func (*MockTxnMockRecorder) If

func (mr *MockTxnMockRecorder) If(arg0 ...interface{}) *gomock.Call

If indicates an expected call of If.

func (*MockTxnMockRecorder) Then

func (mr *MockTxnMockRecorder) Then(arg0 ...interface{}) *gomock.Call

Then indicates an expected call of Then.

Jump to

Keyboard shortcuts

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