Documentation ¶
Overview ¶
Package mock_store is a generated GoMock package.
Index ¶
- type MockKeystore
- func (m *MockKeystore) Close() error
- func (m *MockKeystore) Create(key string, value []byte) (int64, error)
- func (m *MockKeystore) Delete(key string, modRevision int64) error
- func (m *MockKeystore) DeleteAllKeysWithPrefix(keyPrefix string) (int64, error)
- func (m *MockKeystore) EXPECT() *MockKeystoreMockRecorder
- func (m *MockKeystore) Get(key string) (store.KeyValueVersion, error)
- func (m *MockKeystore) GetAll(keyPrefix string) ([]store.KeyValueVersion, error)
- func (m *MockKeystore) IsExist(key string) (bool, error)
- func (m *MockKeystore) KeepAliveKey(ctxt context.Context, key string) error
- func (m *MockKeystore) NewMutex(lockKey string) (store.Mutex, error)
- func (m *MockKeystore) Update(key string, value []byte, modRevision int64) (int64, error)
- func (m *MockKeystore) Watch(ctxt context.Context, key string, withPrefix bool) store.KeyValueUpdateChan
- type MockKeystoreMockRecorder
- func (mr *MockKeystoreMockRecorder) Close() *gomock.Call
- func (mr *MockKeystoreMockRecorder) Create(key, value interface{}) *gomock.Call
- func (mr *MockKeystoreMockRecorder) Delete(key, modRevision interface{}) *gomock.Call
- func (mr *MockKeystoreMockRecorder) DeleteAllKeysWithPrefix(keyPrefix interface{}) *gomock.Call
- func (mr *MockKeystoreMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockKeystoreMockRecorder) GetAll(keyPrefix interface{}) *gomock.Call
- func (mr *MockKeystoreMockRecorder) IsExist(key interface{}) *gomock.Call
- func (mr *MockKeystoreMockRecorder) KeepAliveKey(ctxt, key interface{}) *gomock.Call
- func (mr *MockKeystoreMockRecorder) NewMutex(lockKey interface{}) *gomock.Call
- func (mr *MockKeystoreMockRecorder) Update(key, value, modRevision interface{}) *gomock.Call
- func (mr *MockKeystoreMockRecorder) Watch(ctxt, key, withPrefix interface{}) *gomock.Call
- type MockMutex
- type MockMutexMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockKeystore ¶
type MockKeystore struct {
// contains filtered or unexported fields
}
MockKeystore is a mock of Keystore interface
func NewMockKeystore ¶
func NewMockKeystore(ctrl *gomock.Controller) *MockKeystore
NewMockKeystore creates a new mock instance
func (*MockKeystore) Create ¶
func (m *MockKeystore) Create(key string, value []byte) (int64, error)
Create mocks base method
func (*MockKeystore) Delete ¶
func (m *MockKeystore) Delete(key string, modRevision int64) error
Delete mocks base method
func (*MockKeystore) DeleteAllKeysWithPrefix ¶
func (m *MockKeystore) DeleteAllKeysWithPrefix(keyPrefix string) (int64, error)
DeleteAllKeysWithPrefix mocks base method
func (*MockKeystore) EXPECT ¶
func (m *MockKeystore) EXPECT() *MockKeystoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockKeystore) Get ¶
func (m *MockKeystore) Get(key string) (store.KeyValueVersion, error)
Get mocks base method
func (*MockKeystore) GetAll ¶
func (m *MockKeystore) GetAll(keyPrefix string) ([]store.KeyValueVersion, error)
GetAll mocks base method
func (*MockKeystore) IsExist ¶
func (m *MockKeystore) IsExist(key string) (bool, error)
IsExist mocks base method
func (*MockKeystore) KeepAliveKey ¶
func (m *MockKeystore) KeepAliveKey(ctxt context.Context, key string) error
KeepAliveKey mocks base method
func (*MockKeystore) NewMutex ¶
func (m *MockKeystore) NewMutex(lockKey string) (store.Mutex, error)
NewMutex mocks base method
func (*MockKeystore) Watch ¶
func (m *MockKeystore) Watch(ctxt context.Context, key string, withPrefix bool) store.KeyValueUpdateChan
Watch mocks base method
type MockKeystoreMockRecorder ¶
type MockKeystoreMockRecorder struct {
// contains filtered or unexported fields
}
MockKeystoreMockRecorder is the mock recorder for MockKeystore
func (*MockKeystoreMockRecorder) Close ¶
func (mr *MockKeystoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockKeystoreMockRecorder) Create ¶
func (mr *MockKeystoreMockRecorder) Create(key, value interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockKeystoreMockRecorder) Delete ¶
func (mr *MockKeystoreMockRecorder) Delete(key, modRevision interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockKeystoreMockRecorder) DeleteAllKeysWithPrefix ¶
func (mr *MockKeystoreMockRecorder) DeleteAllKeysWithPrefix(keyPrefix interface{}) *gomock.Call
DeleteAllKeysWithPrefix indicates an expected call of DeleteAllKeysWithPrefix
func (*MockKeystoreMockRecorder) Get ¶
func (mr *MockKeystoreMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockKeystoreMockRecorder) GetAll ¶
func (mr *MockKeystoreMockRecorder) GetAll(keyPrefix interface{}) *gomock.Call
GetAll indicates an expected call of GetAll
func (*MockKeystoreMockRecorder) IsExist ¶
func (mr *MockKeystoreMockRecorder) IsExist(key interface{}) *gomock.Call
IsExist indicates an expected call of IsExist
func (*MockKeystoreMockRecorder) KeepAliveKey ¶
func (mr *MockKeystoreMockRecorder) KeepAliveKey(ctxt, key interface{}) *gomock.Call
KeepAliveKey indicates an expected call of KeepAliveKey
func (*MockKeystoreMockRecorder) NewMutex ¶
func (mr *MockKeystoreMockRecorder) NewMutex(lockKey interface{}) *gomock.Call
NewMutex indicates an expected call of NewMutex
func (*MockKeystoreMockRecorder) Update ¶
func (mr *MockKeystoreMockRecorder) Update(key, value, modRevision interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockKeystoreMockRecorder) Watch ¶
func (mr *MockKeystoreMockRecorder) Watch(ctxt, key, withPrefix interface{}) *gomock.Call
Watch indicates an expected call of Watch
type MockMutex ¶
type MockMutex struct {
// contains filtered or unexported fields
}
MockMutex is a mock of Mutex interface
func NewMockMutex ¶
func NewMockMutex(ctrl *gomock.Controller) *MockMutex
NewMockMutex creates a new mock instance
func (*MockMutex) EXPECT ¶
func (m *MockMutex) EXPECT() *MockMutexMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockMutexMockRecorder ¶
type MockMutexMockRecorder struct {
// contains filtered or unexported fields
}
MockMutexMockRecorder is the mock recorder for MockMutex
func (*MockMutexMockRecorder) Lock ¶
func (mr *MockMutexMockRecorder) Lock(ctx interface{}) *gomock.Call
Lock indicates an expected call of Lock
func (*MockMutexMockRecorder) Unlock ¶
func (mr *MockMutexMockRecorder) Unlock(ctx interface{}) *gomock.Call
Unlock indicates an expected call of Unlock