mocketcd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocketcd is a generated GoMock package.

Package mocketcd is a generated GoMock package.

Package mocketcd is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClientProxy

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

MockClientProxy is a mock of ClientProxy interface

func NewMockClientProxy

func NewMockClientProxy(ctrl *gomock.Controller) *MockClientProxy

NewMockClientProxy creates a new mock instance

func (*MockClientProxy) Delete

Delete mocks base method

func (*MockClientProxy) EXPECT

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

func (*MockClientProxy) Get

Get mocks base method

func (*MockClientProxy) Lease

func (m *MockClientProxy) Lease() etcd.LeaseProxy

Lease mocks base method

func (*MockClientProxy) Locker added in v1.1.0

func (m *MockClientProxy) Locker(prefix string, ttl int) (etcd.LockerProxy, error)

Locker mocks base method

func (*MockClientProxy) Put

func (m *MockClientProxy) Put(ctx context.Context, key, val string, opts ...clientv3.OpOption) (*clientv3.PutResponse, error)

Put mocks base method

func (*MockClientProxy) Txn

func (m *MockClientProxy) Txn(ctx context.Context, cmps []clientv3.Cmp, thenOps, elseOps []clientv3.Op) (*clientv3.TxnResponse, error)

Txn mocks base method

func (*MockClientProxy) Watch

Watch mocks base method

type MockClientProxyMockRecorder

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

MockClientProxyMockRecorder is the mock recorder for MockClientProxy

func (*MockClientProxyMockRecorder) Delete

func (mr *MockClientProxyMockRecorder) Delete(ctx, key interface{}, opts ...interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockClientProxyMockRecorder) Get

func (mr *MockClientProxyMockRecorder) Get(ctx, key interface{}, opts ...interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockClientProxyMockRecorder) Lease

Lease indicates an expected call of Lease

func (*MockClientProxyMockRecorder) Locker added in v1.1.0

func (mr *MockClientProxyMockRecorder) Locker(prefix, ttl interface{}) *gomock.Call

Locker indicates an expected call of Locker

func (*MockClientProxyMockRecorder) Put

func (mr *MockClientProxyMockRecorder) Put(ctx, key, val interface{}, opts ...interface{}) *gomock.Call

Put indicates an expected call of Put

func (*MockClientProxyMockRecorder) Txn

func (mr *MockClientProxyMockRecorder) Txn(ctx, cmps, thenOps, elseOps interface{}) *gomock.Call

Txn indicates an expected call of Txn

func (*MockClientProxyMockRecorder) Watch

func (mr *MockClientProxyMockRecorder) Watch(ctx, key interface{}, opts ...interface{}) *gomock.Call

Watch indicates an expected call of Watch

type MockLeaseProxy

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

MockLeaseProxy is a mock of LeaseProxy interface

func NewMockLeaseProxy

func NewMockLeaseProxy(ctrl *gomock.Controller) *MockLeaseProxy

NewMockLeaseProxy creates a new mock instance

func (*MockLeaseProxy) EXPECT

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

func (*MockLeaseProxy) Grant

Grant mocks base method

func (*MockLeaseProxy) KeepAlive

KeepAlive mocks base method

func (*MockLeaseProxy) Leases

Leases mocks base method

func (*MockLeaseProxy) Revoke

Revoke mocks base method

func (*MockLeaseProxy) TimeToLive

TimeToLive mocks base method

type MockLeaseProxyMockRecorder

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

MockLeaseProxyMockRecorder is the mock recorder for MockLeaseProxy

func (*MockLeaseProxyMockRecorder) Grant

func (mr *MockLeaseProxyMockRecorder) Grant(ctx, ttl interface{}) *gomock.Call

Grant indicates an expected call of Grant

func (*MockLeaseProxyMockRecorder) KeepAlive

func (mr *MockLeaseProxyMockRecorder) KeepAlive(ctx, id interface{}) *gomock.Call

KeepAlive indicates an expected call of KeepAlive

func (*MockLeaseProxyMockRecorder) Leases

func (mr *MockLeaseProxyMockRecorder) Leases(ctx interface{}) *gomock.Call

Leases indicates an expected call of Leases

func (*MockLeaseProxyMockRecorder) Revoke

func (mr *MockLeaseProxyMockRecorder) Revoke(ctx, id interface{}) *gomock.Call

Revoke indicates an expected call of Revoke

func (*MockLeaseProxyMockRecorder) TimeToLive

func (mr *MockLeaseProxyMockRecorder) TimeToLive(ctx, id interface{}, opts ...interface{}) *gomock.Call

TimeToLive indicates an expected call of TimeToLive

type MockLockerProxy added in v1.1.0

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

MockLockerProxy is a mock of LockerProxy interface

func NewMockLockerProxy added in v1.1.0

func NewMockLockerProxy(ctrl *gomock.Controller) *MockLockerProxy

NewMockLockerProxy creates a new mock instance

func (*MockLockerProxy) Close added in v1.1.0

func (m *MockLockerProxy) Close() error

Close mocks base method

func (*MockLockerProxy) EXPECT added in v1.1.0

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

func (*MockLockerProxy) Lock added in v1.1.0

func (m *MockLockerProxy) Lock(ctx context.Context) error

Lock mocks base method

func (*MockLockerProxy) TryLock added in v1.1.0

func (m *MockLockerProxy) TryLock(ctx context.Context) error

TryLock mocks base method

func (*MockLockerProxy) Unlock added in v1.1.0

func (m *MockLockerProxy) Unlock(ctx context.Context) error

Unlock mocks base method

type MockLockerProxyMockRecorder added in v1.1.0

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

MockLockerProxyMockRecorder is the mock recorder for MockLockerProxy

func (*MockLockerProxyMockRecorder) Close added in v1.1.0

Close indicates an expected call of Close

func (*MockLockerProxyMockRecorder) Lock added in v1.1.0

func (mr *MockLockerProxyMockRecorder) Lock(ctx interface{}) *gomock.Call

Lock indicates an expected call of Lock

func (*MockLockerProxyMockRecorder) TryLock added in v1.1.0

func (mr *MockLockerProxyMockRecorder) TryLock(ctx interface{}) *gomock.Call

TryLock indicates an expected call of TryLock

func (*MockLockerProxyMockRecorder) Unlock added in v1.1.0

func (mr *MockLockerProxyMockRecorder) Unlock(ctx interface{}) *gomock.Call

Unlock indicates an expected call of Unlock

Jump to

Keyboard shortcuts

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