Documentation ¶
Overview ¶
Package mocketcd is a generated GoMock package.
Package mocketcd is a generated GoMock package.
Package mocketcd is a generated GoMock package.
Index ¶
- type MockClientProxy
- func (m *MockClientProxy) Delete(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.DeleteResponse, error)
- func (m *MockClientProxy) EXPECT() *MockClientProxyMockRecorder
- func (m *MockClientProxy) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error)
- func (m *MockClientProxy) Lease() etcd.LeaseProxy
- func (m *MockClientProxy) Locker(prefix string, ttl int) (etcd.LockerProxy, error)
- func (m *MockClientProxy) Put(ctx context.Context, key, val string, opts ...clientv3.OpOption) (*clientv3.PutResponse, error)
- func (m *MockClientProxy) Txn(ctx context.Context, cmps []clientv3.Cmp, thenOps, elseOps []clientv3.Op) (*clientv3.TxnResponse, error)
- func (m *MockClientProxy) Watch(ctx context.Context, key string, opts ...clientv3.OpOption) (clientv3.WatchChan, error)
- type MockClientProxyMockRecorder
- func (mr *MockClientProxyMockRecorder) Delete(ctx, key interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockClientProxyMockRecorder) Get(ctx, key interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockClientProxyMockRecorder) Lease() *gomock.Call
- func (mr *MockClientProxyMockRecorder) Locker(prefix, ttl interface{}) *gomock.Call
- func (mr *MockClientProxyMockRecorder) Put(ctx, key, val interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockClientProxyMockRecorder) Txn(ctx, cmps, thenOps, elseOps interface{}) *gomock.Call
- func (mr *MockClientProxyMockRecorder) Watch(ctx, key interface{}, opts ...interface{}) *gomock.Call
- type MockLeaseProxy
- func (m *MockLeaseProxy) EXPECT() *MockLeaseProxyMockRecorder
- func (m *MockLeaseProxy) Grant(ctx context.Context, ttl int64) (*clientv3.LeaseGrantResponse, error)
- func (m *MockLeaseProxy) KeepAlive(ctx context.Context, id clientv3.LeaseID) (<-chan *clientv3.LeaseKeepAliveResponse, error)
- func (m *MockLeaseProxy) Leases(ctx context.Context) (*clientv3.LeaseLeasesResponse, error)
- func (m *MockLeaseProxy) Revoke(ctx context.Context, id clientv3.LeaseID) (*clientv3.LeaseRevokeResponse, error)
- func (m *MockLeaseProxy) TimeToLive(ctx context.Context, id clientv3.LeaseID, opts ...clientv3.LeaseOption) (*clientv3.LeaseTimeToLiveResponse, error)
- type MockLeaseProxyMockRecorder
- func (mr *MockLeaseProxyMockRecorder) Grant(ctx, ttl interface{}) *gomock.Call
- func (mr *MockLeaseProxyMockRecorder) KeepAlive(ctx, id interface{}) *gomock.Call
- func (mr *MockLeaseProxyMockRecorder) Leases(ctx interface{}) *gomock.Call
- func (mr *MockLeaseProxyMockRecorder) Revoke(ctx, id interface{}) *gomock.Call
- func (mr *MockLeaseProxyMockRecorder) TimeToLive(ctx, id interface{}, opts ...interface{}) *gomock.Call
- type MockLockerProxy
- type MockLockerProxyMockRecorder
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 ¶
func (m *MockClientProxy) Delete(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.DeleteResponse, error)
Delete mocks base method
func (*MockClientProxy) EXPECT ¶
func (m *MockClientProxy) EXPECT() *MockClientProxyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClientProxy) Get ¶
func (m *MockClientProxy) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error)
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
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 ¶
func (mr *MockClientProxyMockRecorder) Lease() *gomock.Call
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 ¶
func (m *MockLeaseProxy) EXPECT() *MockLeaseProxyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLeaseProxy) Grant ¶
func (m *MockLeaseProxy) Grant(ctx context.Context, ttl int64) (*clientv3.LeaseGrantResponse, error)
Grant mocks base method
func (*MockLeaseProxy) KeepAlive ¶
func (m *MockLeaseProxy) KeepAlive(ctx context.Context, id clientv3.LeaseID) (<-chan *clientv3.LeaseKeepAliveResponse, error)
KeepAlive mocks base method
func (*MockLeaseProxy) Leases ¶
func (m *MockLeaseProxy) Leases(ctx context.Context) (*clientv3.LeaseLeasesResponse, error)
Leases mocks base method
func (*MockLeaseProxy) Revoke ¶
func (m *MockLeaseProxy) Revoke(ctx context.Context, id clientv3.LeaseID) (*clientv3.LeaseRevokeResponse, error)
Revoke mocks base method
func (*MockLeaseProxy) TimeToLive ¶
func (m *MockLeaseProxy) TimeToLive(ctx context.Context, id clientv3.LeaseID, opts ...clientv3.LeaseOption) (*clientv3.LeaseTimeToLiveResponse, error)
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
func (m *MockLockerProxy) EXPECT() *MockLockerProxyMockRecorder
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
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
func (mr *MockLockerProxyMockRecorder) Close() *gomock.Call
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