Documentation ¶
Index ¶
- type MetaKv
- func (_m *MetaKv) Close()
- func (_m *MetaKv) CompareVersionAndSwap(key string, version int64, target string) (bool, error)
- func (_m *MetaKv) EXPECT() *MetaKv_Expecter
- func (_m *MetaKv) GetPath(key string) string
- func (_m *MetaKv) Has(key string) (bool, error)
- func (_m *MetaKv) HasPrefix(prefix string) (bool, error)
- func (_m *MetaKv) Load(key string) (string, error)
- func (_m *MetaKv) LoadWithPrefix(key string) ([]string, []string, error)
- func (_m *MetaKv) MultiLoad(keys []string) ([]string, error)
- func (_m *MetaKv) MultiRemove(keys []string) error
- func (_m *MetaKv) MultiSave(kvs map[string]string) error
- func (_m *MetaKv) MultiSaveAndRemove(saves map[string]string, removals []string, preds ...predicates.Predicate) error
- func (_m *MetaKv) MultiSaveAndRemoveWithPrefix(saves map[string]string, removals []string, preds ...predicates.Predicate) error
- func (_m *MetaKv) Remove(key string) error
- func (_m *MetaKv) RemoveWithPrefix(key string) error
- func (_m *MetaKv) Save(key string, value string) error
- func (_m *MetaKv) WalkWithPrefix(prefix string, paginationSize int, fn func([]byte, []byte) error) error
- type MetaKv_Close_Call
- type MetaKv_CompareVersionAndSwap_Call
- func (_c *MetaKv_CompareVersionAndSwap_Call) Return(_a0 bool, _a1 error) *MetaKv_CompareVersionAndSwap_Call
- func (_c *MetaKv_CompareVersionAndSwap_Call) Run(run func(key string, version int64, target string)) *MetaKv_CompareVersionAndSwap_Call
- func (_c *MetaKv_CompareVersionAndSwap_Call) RunAndReturn(run func(string, int64, string) (bool, error)) *MetaKv_CompareVersionAndSwap_Call
- type MetaKv_Expecter
- func (_e *MetaKv_Expecter) Close() *MetaKv_Close_Call
- func (_e *MetaKv_Expecter) CompareVersionAndSwap(key interface{}, version interface{}, target interface{}) *MetaKv_CompareVersionAndSwap_Call
- func (_e *MetaKv_Expecter) GetPath(key interface{}) *MetaKv_GetPath_Call
- func (_e *MetaKv_Expecter) Has(key interface{}) *MetaKv_Has_Call
- func (_e *MetaKv_Expecter) HasPrefix(prefix interface{}) *MetaKv_HasPrefix_Call
- func (_e *MetaKv_Expecter) Load(key interface{}) *MetaKv_Load_Call
- func (_e *MetaKv_Expecter) LoadWithPrefix(key interface{}) *MetaKv_LoadWithPrefix_Call
- func (_e *MetaKv_Expecter) MultiLoad(keys interface{}) *MetaKv_MultiLoad_Call
- func (_e *MetaKv_Expecter) MultiRemove(keys interface{}) *MetaKv_MultiRemove_Call
- func (_e *MetaKv_Expecter) MultiSave(kvs interface{}) *MetaKv_MultiSave_Call
- func (_e *MetaKv_Expecter) MultiSaveAndRemove(saves interface{}, removals interface{}, preds ...interface{}) *MetaKv_MultiSaveAndRemove_Call
- func (_e *MetaKv_Expecter) MultiSaveAndRemoveWithPrefix(saves interface{}, removals interface{}, preds ...interface{}) *MetaKv_MultiSaveAndRemoveWithPrefix_Call
- func (_e *MetaKv_Expecter) Remove(key interface{}) *MetaKv_Remove_Call
- func (_e *MetaKv_Expecter) RemoveWithPrefix(key interface{}) *MetaKv_RemoveWithPrefix_Call
- func (_e *MetaKv_Expecter) Save(key interface{}, value interface{}) *MetaKv_Save_Call
- func (_e *MetaKv_Expecter) WalkWithPrefix(prefix interface{}, paginationSize interface{}, fn interface{}) *MetaKv_WalkWithPrefix_Call
- type MetaKv_GetPath_Call
- type MetaKv_HasPrefix_Call
- type MetaKv_Has_Call
- type MetaKv_LoadWithPrefix_Call
- func (_c *MetaKv_LoadWithPrefix_Call) Return(_a0 []string, _a1 []string, _a2 error) *MetaKv_LoadWithPrefix_Call
- func (_c *MetaKv_LoadWithPrefix_Call) Run(run func(key string)) *MetaKv_LoadWithPrefix_Call
- func (_c *MetaKv_LoadWithPrefix_Call) RunAndReturn(run func(string) ([]string, []string, error)) *MetaKv_LoadWithPrefix_Call
- type MetaKv_Load_Call
- type MetaKv_MultiLoad_Call
- type MetaKv_MultiRemove_Call
- type MetaKv_MultiSaveAndRemoveWithPrefix_Call
- func (_c *MetaKv_MultiSaveAndRemoveWithPrefix_Call) Return(_a0 error) *MetaKv_MultiSaveAndRemoveWithPrefix_Call
- func (_c *MetaKv_MultiSaveAndRemoveWithPrefix_Call) Run(...) *MetaKv_MultiSaveAndRemoveWithPrefix_Call
- func (_c *MetaKv_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *MetaKv_MultiSaveAndRemoveWithPrefix_Call
- type MetaKv_MultiSaveAndRemove_Call
- func (_c *MetaKv_MultiSaveAndRemove_Call) Return(_a0 error) *MetaKv_MultiSaveAndRemove_Call
- func (_c *MetaKv_MultiSaveAndRemove_Call) Run(...) *MetaKv_MultiSaveAndRemove_Call
- func (_c *MetaKv_MultiSaveAndRemove_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *MetaKv_MultiSaveAndRemove_Call
- type MetaKv_MultiSave_Call
- type MetaKv_RemoveWithPrefix_Call
- type MetaKv_Remove_Call
- type MetaKv_Save_Call
- type MetaKv_WalkWithPrefix_Call
- func (_c *MetaKv_WalkWithPrefix_Call) Return(_a0 error) *MetaKv_WalkWithPrefix_Call
- func (_c *MetaKv_WalkWithPrefix_Call) Run(run func(prefix string, paginationSize int, fn func([]byte, []byte) error)) *MetaKv_WalkWithPrefix_Call
- func (_c *MetaKv_WalkWithPrefix_Call) RunAndReturn(run func(string, int, func([]byte, []byte) error) error) *MetaKv_WalkWithPrefix_Call
- type SnapShotKV
- func (_m *SnapShotKV) EXPECT() *SnapShotKV_Expecter
- func (_m *SnapShotKV) Load(key string, ts uint64) (string, error)
- func (_m *SnapShotKV) LoadWithPrefix(key string, ts uint64) ([]string, []string, error)
- func (_m *SnapShotKV) MultiSave(kvs map[string]string, ts uint64) error
- func (_m *SnapShotKV) MultiSaveAndRemove(saves map[string]string, removals []string, ts uint64) error
- func (_m *SnapShotKV) MultiSaveAndRemoveWithPrefix(saves map[string]string, removals []string, ts uint64) error
- func (_m *SnapShotKV) Save(key string, value string, ts uint64) error
- type SnapShotKV_Expecter
- func (_e *SnapShotKV_Expecter) Load(key interface{}, ts interface{}) *SnapShotKV_Load_Call
- func (_e *SnapShotKV_Expecter) LoadWithPrefix(key interface{}, ts interface{}) *SnapShotKV_LoadWithPrefix_Call
- func (_e *SnapShotKV_Expecter) MultiSave(kvs interface{}, ts interface{}) *SnapShotKV_MultiSave_Call
- func (_e *SnapShotKV_Expecter) MultiSaveAndRemove(saves interface{}, removals interface{}, ts interface{}) *SnapShotKV_MultiSaveAndRemove_Call
- func (_e *SnapShotKV_Expecter) MultiSaveAndRemoveWithPrefix(saves interface{}, removals interface{}, ts interface{}) *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call
- func (_e *SnapShotKV_Expecter) Save(key interface{}, value interface{}, ts interface{}) *SnapShotKV_Save_Call
- type SnapShotKV_LoadWithPrefix_Call
- func (_c *SnapShotKV_LoadWithPrefix_Call) Return(_a0 []string, _a1 []string, _a2 error) *SnapShotKV_LoadWithPrefix_Call
- func (_c *SnapShotKV_LoadWithPrefix_Call) Run(run func(key string, ts uint64)) *SnapShotKV_LoadWithPrefix_Call
- func (_c *SnapShotKV_LoadWithPrefix_Call) RunAndReturn(run func(string, uint64) ([]string, []string, error)) *SnapShotKV_LoadWithPrefix_Call
- type SnapShotKV_Load_Call
- type SnapShotKV_MultiSaveAndRemoveWithPrefix_Call
- func (_c *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call) Return(_a0 error) *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call
- func (_c *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call) Run(run func(saves map[string]string, removals []string, ts uint64)) *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call
- func (_c *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn(run func(map[string]string, []string, uint64) error) *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call
- type SnapShotKV_MultiSaveAndRemove_Call
- func (_c *SnapShotKV_MultiSaveAndRemove_Call) Return(_a0 error) *SnapShotKV_MultiSaveAndRemove_Call
- func (_c *SnapShotKV_MultiSaveAndRemove_Call) Run(run func(saves map[string]string, removals []string, ts uint64)) *SnapShotKV_MultiSaveAndRemove_Call
- func (_c *SnapShotKV_MultiSaveAndRemove_Call) RunAndReturn(run func(map[string]string, []string, uint64) error) *SnapShotKV_MultiSaveAndRemove_Call
- type SnapShotKV_MultiSave_Call
- func (_c *SnapShotKV_MultiSave_Call) Return(_a0 error) *SnapShotKV_MultiSave_Call
- func (_c *SnapShotKV_MultiSave_Call) Run(run func(kvs map[string]string, ts uint64)) *SnapShotKV_MultiSave_Call
- func (_c *SnapShotKV_MultiSave_Call) RunAndReturn(run func(map[string]string, uint64) error) *SnapShotKV_MultiSave_Call
- type SnapShotKV_Save_Call
- type TxnKV
- func (_m *TxnKV) Close()
- func (_m *TxnKV) EXPECT() *TxnKV_Expecter
- func (_m *TxnKV) Has(key string) (bool, error)
- func (_m *TxnKV) HasPrefix(prefix string) (bool, error)
- func (_m *TxnKV) Load(key string) (string, error)
- func (_m *TxnKV) LoadWithPrefix(key string) ([]string, []string, error)
- func (_m *TxnKV) MultiLoad(keys []string) ([]string, error)
- func (_m *TxnKV) MultiRemove(keys []string) error
- func (_m *TxnKV) MultiSave(kvs map[string]string) error
- func (_m *TxnKV) MultiSaveAndRemove(saves map[string]string, removals []string, preds ...predicates.Predicate) error
- func (_m *TxnKV) MultiSaveAndRemoveWithPrefix(saves map[string]string, removals []string, preds ...predicates.Predicate) error
- func (_m *TxnKV) Remove(key string) error
- func (_m *TxnKV) RemoveWithPrefix(key string) error
- func (_m *TxnKV) Save(key string, value string) error
- type TxnKV_Close_Call
- type TxnKV_Expecter
- func (_e *TxnKV_Expecter) Close() *TxnKV_Close_Call
- func (_e *TxnKV_Expecter) Has(key interface{}) *TxnKV_Has_Call
- func (_e *TxnKV_Expecter) HasPrefix(prefix interface{}) *TxnKV_HasPrefix_Call
- func (_e *TxnKV_Expecter) Load(key interface{}) *TxnKV_Load_Call
- func (_e *TxnKV_Expecter) LoadWithPrefix(key interface{}) *TxnKV_LoadWithPrefix_Call
- func (_e *TxnKV_Expecter) MultiLoad(keys interface{}) *TxnKV_MultiLoad_Call
- func (_e *TxnKV_Expecter) MultiRemove(keys interface{}) *TxnKV_MultiRemove_Call
- func (_e *TxnKV_Expecter) MultiSave(kvs interface{}) *TxnKV_MultiSave_Call
- func (_e *TxnKV_Expecter) MultiSaveAndRemove(saves interface{}, removals interface{}, preds ...interface{}) *TxnKV_MultiSaveAndRemove_Call
- func (_e *TxnKV_Expecter) MultiSaveAndRemoveWithPrefix(saves interface{}, removals interface{}, preds ...interface{}) *TxnKV_MultiSaveAndRemoveWithPrefix_Call
- func (_e *TxnKV_Expecter) Remove(key interface{}) *TxnKV_Remove_Call
- func (_e *TxnKV_Expecter) RemoveWithPrefix(key interface{}) *TxnKV_RemoveWithPrefix_Call
- func (_e *TxnKV_Expecter) Save(key interface{}, value interface{}) *TxnKV_Save_Call
- type TxnKV_HasPrefix_Call
- type TxnKV_Has_Call
- type TxnKV_LoadWithPrefix_Call
- func (_c *TxnKV_LoadWithPrefix_Call) Return(_a0 []string, _a1 []string, _a2 error) *TxnKV_LoadWithPrefix_Call
- func (_c *TxnKV_LoadWithPrefix_Call) Run(run func(key string)) *TxnKV_LoadWithPrefix_Call
- func (_c *TxnKV_LoadWithPrefix_Call) RunAndReturn(run func(string) ([]string, []string, error)) *TxnKV_LoadWithPrefix_Call
- type TxnKV_Load_Call
- type TxnKV_MultiLoad_Call
- type TxnKV_MultiRemove_Call
- type TxnKV_MultiSaveAndRemoveWithPrefix_Call
- func (_c *TxnKV_MultiSaveAndRemoveWithPrefix_Call) Return(_a0 error) *TxnKV_MultiSaveAndRemoveWithPrefix_Call
- func (_c *TxnKV_MultiSaveAndRemoveWithPrefix_Call) Run(...) *TxnKV_MultiSaveAndRemoveWithPrefix_Call
- func (_c *TxnKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *TxnKV_MultiSaveAndRemoveWithPrefix_Call
- type TxnKV_MultiSaveAndRemove_Call
- func (_c *TxnKV_MultiSaveAndRemove_Call) Return(_a0 error) *TxnKV_MultiSaveAndRemove_Call
- func (_c *TxnKV_MultiSaveAndRemove_Call) Run(...) *TxnKV_MultiSaveAndRemove_Call
- func (_c *TxnKV_MultiSaveAndRemove_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *TxnKV_MultiSaveAndRemove_Call
- type TxnKV_MultiSave_Call
- type TxnKV_RemoveWithPrefix_Call
- type TxnKV_Remove_Call
- type TxnKV_Save_Call
- type WatchKV
- func (_m *WatchKV) Close()
- func (_m *WatchKV) CompareVersionAndSwap(key string, version int64, target string) (bool, error)
- func (_m *WatchKV) EXPECT() *WatchKV_Expecter
- func (_m *WatchKV) GetPath(key string) string
- func (_m *WatchKV) Has(key string) (bool, error)
- func (_m *WatchKV) HasPrefix(prefix string) (bool, error)
- func (_m *WatchKV) Load(key string) (string, error)
- func (_m *WatchKV) LoadWithPrefix(key string) ([]string, []string, error)
- func (_m *WatchKV) MultiLoad(keys []string) ([]string, error)
- func (_m *WatchKV) MultiRemove(keys []string) error
- func (_m *WatchKV) MultiSave(kvs map[string]string) error
- func (_m *WatchKV) MultiSaveAndRemove(saves map[string]string, removals []string, preds ...predicates.Predicate) error
- func (_m *WatchKV) MultiSaveAndRemoveWithPrefix(saves map[string]string, removals []string, preds ...predicates.Predicate) error
- func (_m *WatchKV) Remove(key string) error
- func (_m *WatchKV) RemoveWithPrefix(key string) error
- func (_m *WatchKV) Save(key string, value string) error
- func (_m *WatchKV) WalkWithPrefix(prefix string, paginationSize int, fn func([]byte, []byte) error) error
- func (_m *WatchKV) Watch(key string) clientv3.WatchChan
- func (_m *WatchKV) WatchWithPrefix(key string) clientv3.WatchChan
- func (_m *WatchKV) WatchWithRevision(key string, revision int64) clientv3.WatchChan
- type WatchKV_Close_Call
- type WatchKV_CompareVersionAndSwap_Call
- func (_c *WatchKV_CompareVersionAndSwap_Call) Return(_a0 bool, _a1 error) *WatchKV_CompareVersionAndSwap_Call
- func (_c *WatchKV_CompareVersionAndSwap_Call) Run(run func(key string, version int64, target string)) *WatchKV_CompareVersionAndSwap_Call
- func (_c *WatchKV_CompareVersionAndSwap_Call) RunAndReturn(run func(string, int64, string) (bool, error)) *WatchKV_CompareVersionAndSwap_Call
- type WatchKV_Expecter
- func (_e *WatchKV_Expecter) Close() *WatchKV_Close_Call
- func (_e *WatchKV_Expecter) CompareVersionAndSwap(key interface{}, version interface{}, target interface{}) *WatchKV_CompareVersionAndSwap_Call
- func (_e *WatchKV_Expecter) GetPath(key interface{}) *WatchKV_GetPath_Call
- func (_e *WatchKV_Expecter) Has(key interface{}) *WatchKV_Has_Call
- func (_e *WatchKV_Expecter) HasPrefix(prefix interface{}) *WatchKV_HasPrefix_Call
- func (_e *WatchKV_Expecter) Load(key interface{}) *WatchKV_Load_Call
- func (_e *WatchKV_Expecter) LoadWithPrefix(key interface{}) *WatchKV_LoadWithPrefix_Call
- func (_e *WatchKV_Expecter) MultiLoad(keys interface{}) *WatchKV_MultiLoad_Call
- func (_e *WatchKV_Expecter) MultiRemove(keys interface{}) *WatchKV_MultiRemove_Call
- func (_e *WatchKV_Expecter) MultiSave(kvs interface{}) *WatchKV_MultiSave_Call
- func (_e *WatchKV_Expecter) MultiSaveAndRemove(saves interface{}, removals interface{}, preds ...interface{}) *WatchKV_MultiSaveAndRemove_Call
- func (_e *WatchKV_Expecter) MultiSaveAndRemoveWithPrefix(saves interface{}, removals interface{}, preds ...interface{}) *WatchKV_MultiSaveAndRemoveWithPrefix_Call
- func (_e *WatchKV_Expecter) Remove(key interface{}) *WatchKV_Remove_Call
- func (_e *WatchKV_Expecter) RemoveWithPrefix(key interface{}) *WatchKV_RemoveWithPrefix_Call
- func (_e *WatchKV_Expecter) Save(key interface{}, value interface{}) *WatchKV_Save_Call
- func (_e *WatchKV_Expecter) WalkWithPrefix(prefix interface{}, paginationSize interface{}, fn interface{}) *WatchKV_WalkWithPrefix_Call
- func (_e *WatchKV_Expecter) Watch(key interface{}) *WatchKV_Watch_Call
- func (_e *WatchKV_Expecter) WatchWithPrefix(key interface{}) *WatchKV_WatchWithPrefix_Call
- func (_e *WatchKV_Expecter) WatchWithRevision(key interface{}, revision interface{}) *WatchKV_WatchWithRevision_Call
- type WatchKV_GetPath_Call
- type WatchKV_HasPrefix_Call
- type WatchKV_Has_Call
- type WatchKV_LoadWithPrefix_Call
- func (_c *WatchKV_LoadWithPrefix_Call) Return(_a0 []string, _a1 []string, _a2 error) *WatchKV_LoadWithPrefix_Call
- func (_c *WatchKV_LoadWithPrefix_Call) Run(run func(key string)) *WatchKV_LoadWithPrefix_Call
- func (_c *WatchKV_LoadWithPrefix_Call) RunAndReturn(run func(string) ([]string, []string, error)) *WatchKV_LoadWithPrefix_Call
- type WatchKV_Load_Call
- type WatchKV_MultiLoad_Call
- type WatchKV_MultiRemove_Call
- type WatchKV_MultiSaveAndRemoveWithPrefix_Call
- func (_c *WatchKV_MultiSaveAndRemoveWithPrefix_Call) Return(_a0 error) *WatchKV_MultiSaveAndRemoveWithPrefix_Call
- func (_c *WatchKV_MultiSaveAndRemoveWithPrefix_Call) Run(...) *WatchKV_MultiSaveAndRemoveWithPrefix_Call
- func (_c *WatchKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *WatchKV_MultiSaveAndRemoveWithPrefix_Call
- type WatchKV_MultiSaveAndRemove_Call
- func (_c *WatchKV_MultiSaveAndRemove_Call) Return(_a0 error) *WatchKV_MultiSaveAndRemove_Call
- func (_c *WatchKV_MultiSaveAndRemove_Call) Run(...) *WatchKV_MultiSaveAndRemove_Call
- func (_c *WatchKV_MultiSaveAndRemove_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *WatchKV_MultiSaveAndRemove_Call
- type WatchKV_MultiSave_Call
- type WatchKV_RemoveWithPrefix_Call
- type WatchKV_Remove_Call
- type WatchKV_Save_Call
- type WatchKV_WalkWithPrefix_Call
- func (_c *WatchKV_WalkWithPrefix_Call) Return(_a0 error) *WatchKV_WalkWithPrefix_Call
- func (_c *WatchKV_WalkWithPrefix_Call) Run(run func(prefix string, paginationSize int, fn func([]byte, []byte) error)) *WatchKV_WalkWithPrefix_Call
- func (_c *WatchKV_WalkWithPrefix_Call) RunAndReturn(run func(string, int, func([]byte, []byte) error) error) *WatchKV_WalkWithPrefix_Call
- type WatchKV_WatchWithPrefix_Call
- func (_c *WatchKV_WatchWithPrefix_Call) Return(_a0 clientv3.WatchChan) *WatchKV_WatchWithPrefix_Call
- func (_c *WatchKV_WatchWithPrefix_Call) Run(run func(key string)) *WatchKV_WatchWithPrefix_Call
- func (_c *WatchKV_WatchWithPrefix_Call) RunAndReturn(run func(string) clientv3.WatchChan) *WatchKV_WatchWithPrefix_Call
- type WatchKV_WatchWithRevision_Call
- func (_c *WatchKV_WatchWithRevision_Call) Return(_a0 clientv3.WatchChan) *WatchKV_WatchWithRevision_Call
- func (_c *WatchKV_WatchWithRevision_Call) Run(run func(key string, revision int64)) *WatchKV_WatchWithRevision_Call
- func (_c *WatchKV_WatchWithRevision_Call) RunAndReturn(run func(string, int64) clientv3.WatchChan) *WatchKV_WatchWithRevision_Call
- type WatchKV_Watch_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetaKv ¶
MetaKv is an autogenerated mock type for the MetaKv type
func NewMetaKv ¶
NewMetaKv creates a new instance of MetaKv. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MetaKv) CompareVersionAndSwap ¶
CompareVersionAndSwap provides a mock function with given fields: key, version, target
func (*MetaKv) EXPECT ¶
func (_m *MetaKv) EXPECT() *MetaKv_Expecter
func (*MetaKv) LoadWithPrefix ¶
LoadWithPrefix provides a mock function with given fields: key
func (*MetaKv) MultiRemove ¶
MultiRemove provides a mock function with given fields: keys
func (*MetaKv) MultiSaveAndRemove ¶
func (_m *MetaKv) MultiSaveAndRemove(saves map[string]string, removals []string, preds ...predicates.Predicate) error
MultiSaveAndRemove provides a mock function with given fields: saves, removals, preds
func (*MetaKv) MultiSaveAndRemoveWithPrefix ¶
func (_m *MetaKv) MultiSaveAndRemoveWithPrefix(saves map[string]string, removals []string, preds ...predicates.Predicate) error
MultiSaveAndRemoveWithPrefix provides a mock function with given fields: saves, removals, preds
func (*MetaKv) RemoveWithPrefix ¶
RemoveWithPrefix provides a mock function with given fields: key
type MetaKv_Close_Call ¶
MetaKv_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MetaKv_Close_Call) Return ¶
func (_c *MetaKv_Close_Call) Return() *MetaKv_Close_Call
func (*MetaKv_Close_Call) Run ¶
func (_c *MetaKv_Close_Call) Run(run func()) *MetaKv_Close_Call
func (*MetaKv_Close_Call) RunAndReturn ¶
func (_c *MetaKv_Close_Call) RunAndReturn(run func()) *MetaKv_Close_Call
type MetaKv_CompareVersionAndSwap_Call ¶
MetaKv_CompareVersionAndSwap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompareVersionAndSwap'
func (*MetaKv_CompareVersionAndSwap_Call) Return ¶
func (_c *MetaKv_CompareVersionAndSwap_Call) Return(_a0 bool, _a1 error) *MetaKv_CompareVersionAndSwap_Call
func (*MetaKv_CompareVersionAndSwap_Call) Run ¶
func (_c *MetaKv_CompareVersionAndSwap_Call) Run(run func(key string, version int64, target string)) *MetaKv_CompareVersionAndSwap_Call
func (*MetaKv_CompareVersionAndSwap_Call) RunAndReturn ¶
func (_c *MetaKv_CompareVersionAndSwap_Call) RunAndReturn(run func(string, int64, string) (bool, error)) *MetaKv_CompareVersionAndSwap_Call
type MetaKv_Expecter ¶
type MetaKv_Expecter struct {
// contains filtered or unexported fields
}
func (*MetaKv_Expecter) Close ¶
func (_e *MetaKv_Expecter) Close() *MetaKv_Close_Call
Close is a helper method to define mock.On call
func (*MetaKv_Expecter) CompareVersionAndSwap ¶
func (_e *MetaKv_Expecter) CompareVersionAndSwap(key interface{}, version interface{}, target interface{}) *MetaKv_CompareVersionAndSwap_Call
CompareVersionAndSwap is a helper method to define mock.On call
- key string
- version int64
- target string
func (*MetaKv_Expecter) GetPath ¶
func (_e *MetaKv_Expecter) GetPath(key interface{}) *MetaKv_GetPath_Call
GetPath is a helper method to define mock.On call
- key string
func (*MetaKv_Expecter) Has ¶
func (_e *MetaKv_Expecter) Has(key interface{}) *MetaKv_Has_Call
Has is a helper method to define mock.On call
- key string
func (*MetaKv_Expecter) HasPrefix ¶
func (_e *MetaKv_Expecter) HasPrefix(prefix interface{}) *MetaKv_HasPrefix_Call
HasPrefix is a helper method to define mock.On call
- prefix string
func (*MetaKv_Expecter) Load ¶
func (_e *MetaKv_Expecter) Load(key interface{}) *MetaKv_Load_Call
Load is a helper method to define mock.On call
- key string
func (*MetaKv_Expecter) LoadWithPrefix ¶
func (_e *MetaKv_Expecter) LoadWithPrefix(key interface{}) *MetaKv_LoadWithPrefix_Call
LoadWithPrefix is a helper method to define mock.On call
- key string
func (*MetaKv_Expecter) MultiLoad ¶
func (_e *MetaKv_Expecter) MultiLoad(keys interface{}) *MetaKv_MultiLoad_Call
MultiLoad is a helper method to define mock.On call
- keys []string
func (*MetaKv_Expecter) MultiRemove ¶
func (_e *MetaKv_Expecter) MultiRemove(keys interface{}) *MetaKv_MultiRemove_Call
MultiRemove is a helper method to define mock.On call
- keys []string
func (*MetaKv_Expecter) MultiSave ¶
func (_e *MetaKv_Expecter) MultiSave(kvs interface{}) *MetaKv_MultiSave_Call
MultiSave is a helper method to define mock.On call
- kvs map[string]string
func (*MetaKv_Expecter) MultiSaveAndRemove ¶
func (_e *MetaKv_Expecter) MultiSaveAndRemove(saves interface{}, removals interface{}, preds ...interface{}) *MetaKv_MultiSaveAndRemove_Call
MultiSaveAndRemove is a helper method to define mock.On call
- saves map[string]string
- removals []string
- preds ...predicates.Predicate
func (*MetaKv_Expecter) MultiSaveAndRemoveWithPrefix ¶
func (_e *MetaKv_Expecter) MultiSaveAndRemoveWithPrefix(saves interface{}, removals interface{}, preds ...interface{}) *MetaKv_MultiSaveAndRemoveWithPrefix_Call
MultiSaveAndRemoveWithPrefix is a helper method to define mock.On call
- saves map[string]string
- removals []string
- preds ...predicates.Predicate
func (*MetaKv_Expecter) Remove ¶
func (_e *MetaKv_Expecter) Remove(key interface{}) *MetaKv_Remove_Call
Remove is a helper method to define mock.On call
- key string
func (*MetaKv_Expecter) RemoveWithPrefix ¶
func (_e *MetaKv_Expecter) RemoveWithPrefix(key interface{}) *MetaKv_RemoveWithPrefix_Call
RemoveWithPrefix is a helper method to define mock.On call
- key string
func (*MetaKv_Expecter) Save ¶
func (_e *MetaKv_Expecter) Save(key interface{}, value interface{}) *MetaKv_Save_Call
Save is a helper method to define mock.On call
- key string
- value string
func (*MetaKv_Expecter) WalkWithPrefix ¶
func (_e *MetaKv_Expecter) WalkWithPrefix(prefix interface{}, paginationSize interface{}, fn interface{}) *MetaKv_WalkWithPrefix_Call
WalkWithPrefix is a helper method to define mock.On call
- prefix string
- paginationSize int
- fn func([]byte , []byte) error
type MetaKv_GetPath_Call ¶
MetaKv_GetPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPath'
func (*MetaKv_GetPath_Call) Return ¶
func (_c *MetaKv_GetPath_Call) Return(_a0 string) *MetaKv_GetPath_Call
func (*MetaKv_GetPath_Call) Run ¶
func (_c *MetaKv_GetPath_Call) Run(run func(key string)) *MetaKv_GetPath_Call
func (*MetaKv_GetPath_Call) RunAndReturn ¶
func (_c *MetaKv_GetPath_Call) RunAndReturn(run func(string) string) *MetaKv_GetPath_Call
type MetaKv_HasPrefix_Call ¶
MetaKv_HasPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasPrefix'
func (*MetaKv_HasPrefix_Call) Return ¶
func (_c *MetaKv_HasPrefix_Call) Return(_a0 bool, _a1 error) *MetaKv_HasPrefix_Call
func (*MetaKv_HasPrefix_Call) Run ¶
func (_c *MetaKv_HasPrefix_Call) Run(run func(prefix string)) *MetaKv_HasPrefix_Call
func (*MetaKv_HasPrefix_Call) RunAndReturn ¶
func (_c *MetaKv_HasPrefix_Call) RunAndReturn(run func(string) (bool, error)) *MetaKv_HasPrefix_Call
type MetaKv_Has_Call ¶
MetaKv_Has_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Has'
func (*MetaKv_Has_Call) Return ¶
func (_c *MetaKv_Has_Call) Return(_a0 bool, _a1 error) *MetaKv_Has_Call
func (*MetaKv_Has_Call) Run ¶
func (_c *MetaKv_Has_Call) Run(run func(key string)) *MetaKv_Has_Call
func (*MetaKv_Has_Call) RunAndReturn ¶
func (_c *MetaKv_Has_Call) RunAndReturn(run func(string) (bool, error)) *MetaKv_Has_Call
type MetaKv_LoadWithPrefix_Call ¶
MetaKv_LoadWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadWithPrefix'
func (*MetaKv_LoadWithPrefix_Call) Return ¶
func (_c *MetaKv_LoadWithPrefix_Call) Return(_a0 []string, _a1 []string, _a2 error) *MetaKv_LoadWithPrefix_Call
func (*MetaKv_LoadWithPrefix_Call) Run ¶
func (_c *MetaKv_LoadWithPrefix_Call) Run(run func(key string)) *MetaKv_LoadWithPrefix_Call
func (*MetaKv_LoadWithPrefix_Call) RunAndReturn ¶
func (_c *MetaKv_LoadWithPrefix_Call) RunAndReturn(run func(string) ([]string, []string, error)) *MetaKv_LoadWithPrefix_Call
type MetaKv_Load_Call ¶
MetaKv_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'
func (*MetaKv_Load_Call) Return ¶
func (_c *MetaKv_Load_Call) Return(_a0 string, _a1 error) *MetaKv_Load_Call
func (*MetaKv_Load_Call) Run ¶
func (_c *MetaKv_Load_Call) Run(run func(key string)) *MetaKv_Load_Call
func (*MetaKv_Load_Call) RunAndReturn ¶
func (_c *MetaKv_Load_Call) RunAndReturn(run func(string) (string, error)) *MetaKv_Load_Call
type MetaKv_MultiLoad_Call ¶
MetaKv_MultiLoad_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiLoad'
func (*MetaKv_MultiLoad_Call) Return ¶
func (_c *MetaKv_MultiLoad_Call) Return(_a0 []string, _a1 error) *MetaKv_MultiLoad_Call
func (*MetaKv_MultiLoad_Call) Run ¶
func (_c *MetaKv_MultiLoad_Call) Run(run func(keys []string)) *MetaKv_MultiLoad_Call
func (*MetaKv_MultiLoad_Call) RunAndReturn ¶
func (_c *MetaKv_MultiLoad_Call) RunAndReturn(run func([]string) ([]string, error)) *MetaKv_MultiLoad_Call
type MetaKv_MultiRemove_Call ¶
MetaKv_MultiRemove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiRemove'
func (*MetaKv_MultiRemove_Call) Return ¶
func (_c *MetaKv_MultiRemove_Call) Return(_a0 error) *MetaKv_MultiRemove_Call
func (*MetaKv_MultiRemove_Call) Run ¶
func (_c *MetaKv_MultiRemove_Call) Run(run func(keys []string)) *MetaKv_MultiRemove_Call
func (*MetaKv_MultiRemove_Call) RunAndReturn ¶
func (_c *MetaKv_MultiRemove_Call) RunAndReturn(run func([]string) error) *MetaKv_MultiRemove_Call
type MetaKv_MultiSaveAndRemoveWithPrefix_Call ¶
MetaKv_MultiSaveAndRemoveWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSaveAndRemoveWithPrefix'
func (*MetaKv_MultiSaveAndRemoveWithPrefix_Call) Return ¶
func (_c *MetaKv_MultiSaveAndRemoveWithPrefix_Call) Return(_a0 error) *MetaKv_MultiSaveAndRemoveWithPrefix_Call
func (*MetaKv_MultiSaveAndRemoveWithPrefix_Call) Run ¶
func (_c *MetaKv_MultiSaveAndRemoveWithPrefix_Call) Run(run func(saves map[string]string, removals []string, preds ...predicates.Predicate)) *MetaKv_MultiSaveAndRemoveWithPrefix_Call
func (*MetaKv_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn ¶
func (_c *MetaKv_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *MetaKv_MultiSaveAndRemoveWithPrefix_Call
type MetaKv_MultiSaveAndRemove_Call ¶
MetaKv_MultiSaveAndRemove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSaveAndRemove'
func (*MetaKv_MultiSaveAndRemove_Call) Return ¶
func (_c *MetaKv_MultiSaveAndRemove_Call) Return(_a0 error) *MetaKv_MultiSaveAndRemove_Call
func (*MetaKv_MultiSaveAndRemove_Call) Run ¶
func (_c *MetaKv_MultiSaveAndRemove_Call) Run(run func(saves map[string]string, removals []string, preds ...predicates.Predicate)) *MetaKv_MultiSaveAndRemove_Call
func (*MetaKv_MultiSaveAndRemove_Call) RunAndReturn ¶
func (_c *MetaKv_MultiSaveAndRemove_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *MetaKv_MultiSaveAndRemove_Call
type MetaKv_MultiSave_Call ¶
MetaKv_MultiSave_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSave'
func (*MetaKv_MultiSave_Call) Return ¶
func (_c *MetaKv_MultiSave_Call) Return(_a0 error) *MetaKv_MultiSave_Call
func (*MetaKv_MultiSave_Call) Run ¶
func (_c *MetaKv_MultiSave_Call) Run(run func(kvs map[string]string)) *MetaKv_MultiSave_Call
func (*MetaKv_MultiSave_Call) RunAndReturn ¶
func (_c *MetaKv_MultiSave_Call) RunAndReturn(run func(map[string]string) error) *MetaKv_MultiSave_Call
type MetaKv_RemoveWithPrefix_Call ¶
MetaKv_RemoveWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveWithPrefix'
func (*MetaKv_RemoveWithPrefix_Call) Return ¶
func (_c *MetaKv_RemoveWithPrefix_Call) Return(_a0 error) *MetaKv_RemoveWithPrefix_Call
func (*MetaKv_RemoveWithPrefix_Call) Run ¶
func (_c *MetaKv_RemoveWithPrefix_Call) Run(run func(key string)) *MetaKv_RemoveWithPrefix_Call
func (*MetaKv_RemoveWithPrefix_Call) RunAndReturn ¶
func (_c *MetaKv_RemoveWithPrefix_Call) RunAndReturn(run func(string) error) *MetaKv_RemoveWithPrefix_Call
type MetaKv_Remove_Call ¶
MetaKv_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*MetaKv_Remove_Call) Return ¶
func (_c *MetaKv_Remove_Call) Return(_a0 error) *MetaKv_Remove_Call
func (*MetaKv_Remove_Call) Run ¶
func (_c *MetaKv_Remove_Call) Run(run func(key string)) *MetaKv_Remove_Call
func (*MetaKv_Remove_Call) RunAndReturn ¶
func (_c *MetaKv_Remove_Call) RunAndReturn(run func(string) error) *MetaKv_Remove_Call
type MetaKv_Save_Call ¶
MetaKv_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*MetaKv_Save_Call) Return ¶
func (_c *MetaKv_Save_Call) Return(_a0 error) *MetaKv_Save_Call
func (*MetaKv_Save_Call) Run ¶
func (_c *MetaKv_Save_Call) Run(run func(key string, value string)) *MetaKv_Save_Call
func (*MetaKv_Save_Call) RunAndReturn ¶
func (_c *MetaKv_Save_Call) RunAndReturn(run func(string, string) error) *MetaKv_Save_Call
type MetaKv_WalkWithPrefix_Call ¶
MetaKv_WalkWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WalkWithPrefix'
func (*MetaKv_WalkWithPrefix_Call) Return ¶
func (_c *MetaKv_WalkWithPrefix_Call) Return(_a0 error) *MetaKv_WalkWithPrefix_Call
func (*MetaKv_WalkWithPrefix_Call) Run ¶
func (_c *MetaKv_WalkWithPrefix_Call) Run(run func(prefix string, paginationSize int, fn func([]byte, []byte) error)) *MetaKv_WalkWithPrefix_Call
func (*MetaKv_WalkWithPrefix_Call) RunAndReturn ¶
func (_c *MetaKv_WalkWithPrefix_Call) RunAndReturn(run func(string, int, func([]byte, []byte) error) error) *MetaKv_WalkWithPrefix_Call
type SnapShotKV ¶
SnapShotKV is an autogenerated mock type for the SnapShotKV type
func NewSnapShotKV ¶
func NewSnapShotKV(t interface { mock.TestingT Cleanup(func()) }) *SnapShotKV
NewSnapShotKV creates a new instance of SnapShotKV. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SnapShotKV) EXPECT ¶
func (_m *SnapShotKV) EXPECT() *SnapShotKV_Expecter
func (*SnapShotKV) Load ¶
func (_m *SnapShotKV) Load(key string, ts uint64) (string, error)
Load provides a mock function with given fields: key, ts
func (*SnapShotKV) LoadWithPrefix ¶
LoadWithPrefix provides a mock function with given fields: key, ts
func (*SnapShotKV) MultiSave ¶
func (_m *SnapShotKV) MultiSave(kvs map[string]string, ts uint64) error
MultiSave provides a mock function with given fields: kvs, ts
func (*SnapShotKV) MultiSaveAndRemove ¶
func (_m *SnapShotKV) MultiSaveAndRemove(saves map[string]string, removals []string, ts uint64) error
MultiSaveAndRemove provides a mock function with given fields: saves, removals, ts
func (*SnapShotKV) MultiSaveAndRemoveWithPrefix ¶
func (_m *SnapShotKV) MultiSaveAndRemoveWithPrefix(saves map[string]string, removals []string, ts uint64) error
MultiSaveAndRemoveWithPrefix provides a mock function with given fields: saves, removals, ts
type SnapShotKV_Expecter ¶
type SnapShotKV_Expecter struct {
// contains filtered or unexported fields
}
func (*SnapShotKV_Expecter) Load ¶
func (_e *SnapShotKV_Expecter) Load(key interface{}, ts interface{}) *SnapShotKV_Load_Call
Load is a helper method to define mock.On call
- key string
- ts uint64
func (*SnapShotKV_Expecter) LoadWithPrefix ¶
func (_e *SnapShotKV_Expecter) LoadWithPrefix(key interface{}, ts interface{}) *SnapShotKV_LoadWithPrefix_Call
LoadWithPrefix is a helper method to define mock.On call
- key string
- ts uint64
func (*SnapShotKV_Expecter) MultiSave ¶
func (_e *SnapShotKV_Expecter) MultiSave(kvs interface{}, ts interface{}) *SnapShotKV_MultiSave_Call
MultiSave is a helper method to define mock.On call
- kvs map[string]string
- ts uint64
func (*SnapShotKV_Expecter) MultiSaveAndRemove ¶
func (_e *SnapShotKV_Expecter) MultiSaveAndRemove(saves interface{}, removals interface{}, ts interface{}) *SnapShotKV_MultiSaveAndRemove_Call
MultiSaveAndRemove is a helper method to define mock.On call
- saves map[string]string
- removals []string
- ts uint64
func (*SnapShotKV_Expecter) MultiSaveAndRemoveWithPrefix ¶
func (_e *SnapShotKV_Expecter) MultiSaveAndRemoveWithPrefix(saves interface{}, removals interface{}, ts interface{}) *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call
MultiSaveAndRemoveWithPrefix is a helper method to define mock.On call
- saves map[string]string
- removals []string
- ts uint64
func (*SnapShotKV_Expecter) Save ¶
func (_e *SnapShotKV_Expecter) Save(key interface{}, value interface{}, ts interface{}) *SnapShotKV_Save_Call
Save is a helper method to define mock.On call
- key string
- value string
- ts uint64
type SnapShotKV_LoadWithPrefix_Call ¶
SnapShotKV_LoadWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadWithPrefix'
func (*SnapShotKV_LoadWithPrefix_Call) Return ¶
func (_c *SnapShotKV_LoadWithPrefix_Call) Return(_a0 []string, _a1 []string, _a2 error) *SnapShotKV_LoadWithPrefix_Call
func (*SnapShotKV_LoadWithPrefix_Call) Run ¶
func (_c *SnapShotKV_LoadWithPrefix_Call) Run(run func(key string, ts uint64)) *SnapShotKV_LoadWithPrefix_Call
func (*SnapShotKV_LoadWithPrefix_Call) RunAndReturn ¶
func (_c *SnapShotKV_LoadWithPrefix_Call) RunAndReturn(run func(string, uint64) ([]string, []string, error)) *SnapShotKV_LoadWithPrefix_Call
type SnapShotKV_Load_Call ¶
SnapShotKV_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'
func (*SnapShotKV_Load_Call) Return ¶
func (_c *SnapShotKV_Load_Call) Return(_a0 string, _a1 error) *SnapShotKV_Load_Call
func (*SnapShotKV_Load_Call) Run ¶
func (_c *SnapShotKV_Load_Call) Run(run func(key string, ts uint64)) *SnapShotKV_Load_Call
func (*SnapShotKV_Load_Call) RunAndReturn ¶
func (_c *SnapShotKV_Load_Call) RunAndReturn(run func(string, uint64) (string, error)) *SnapShotKV_Load_Call
type SnapShotKV_MultiSaveAndRemoveWithPrefix_Call ¶
SnapShotKV_MultiSaveAndRemoveWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSaveAndRemoveWithPrefix'
func (*SnapShotKV_MultiSaveAndRemoveWithPrefix_Call) Return ¶
func (_c *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call) Return(_a0 error) *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call
func (*SnapShotKV_MultiSaveAndRemoveWithPrefix_Call) Run ¶
func (_c *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call) Run(run func(saves map[string]string, removals []string, ts uint64)) *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call
func (*SnapShotKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn ¶
func (_c *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn(run func(map[string]string, []string, uint64) error) *SnapShotKV_MultiSaveAndRemoveWithPrefix_Call
type SnapShotKV_MultiSaveAndRemove_Call ¶
SnapShotKV_MultiSaveAndRemove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSaveAndRemove'
func (*SnapShotKV_MultiSaveAndRemove_Call) Return ¶
func (_c *SnapShotKV_MultiSaveAndRemove_Call) Return(_a0 error) *SnapShotKV_MultiSaveAndRemove_Call
func (*SnapShotKV_MultiSaveAndRemove_Call) Run ¶
func (_c *SnapShotKV_MultiSaveAndRemove_Call) Run(run func(saves map[string]string, removals []string, ts uint64)) *SnapShotKV_MultiSaveAndRemove_Call
func (*SnapShotKV_MultiSaveAndRemove_Call) RunAndReturn ¶
func (_c *SnapShotKV_MultiSaveAndRemove_Call) RunAndReturn(run func(map[string]string, []string, uint64) error) *SnapShotKV_MultiSaveAndRemove_Call
type SnapShotKV_MultiSave_Call ¶
SnapShotKV_MultiSave_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSave'
func (*SnapShotKV_MultiSave_Call) Return ¶
func (_c *SnapShotKV_MultiSave_Call) Return(_a0 error) *SnapShotKV_MultiSave_Call
func (*SnapShotKV_MultiSave_Call) Run ¶
func (_c *SnapShotKV_MultiSave_Call) Run(run func(kvs map[string]string, ts uint64)) *SnapShotKV_MultiSave_Call
func (*SnapShotKV_MultiSave_Call) RunAndReturn ¶
func (_c *SnapShotKV_MultiSave_Call) RunAndReturn(run func(map[string]string, uint64) error) *SnapShotKV_MultiSave_Call
type SnapShotKV_Save_Call ¶
SnapShotKV_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*SnapShotKV_Save_Call) Return ¶
func (_c *SnapShotKV_Save_Call) Return(_a0 error) *SnapShotKV_Save_Call
func (*SnapShotKV_Save_Call) Run ¶
func (_c *SnapShotKV_Save_Call) Run(run func(key string, value string, ts uint64)) *SnapShotKV_Save_Call
func (*SnapShotKV_Save_Call) RunAndReturn ¶
func (_c *SnapShotKV_Save_Call) RunAndReturn(run func(string, string, uint64) error) *SnapShotKV_Save_Call
type TxnKV ¶
TxnKV is an autogenerated mock type for the TxnKV type
func NewTxnKV ¶
NewTxnKV creates a new instance of TxnKV. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TxnKV) EXPECT ¶
func (_m *TxnKV) EXPECT() *TxnKV_Expecter
func (*TxnKV) LoadWithPrefix ¶
LoadWithPrefix provides a mock function with given fields: key
func (*TxnKV) MultiRemove ¶
MultiRemove provides a mock function with given fields: keys
func (*TxnKV) MultiSaveAndRemove ¶
func (_m *TxnKV) MultiSaveAndRemove(saves map[string]string, removals []string, preds ...predicates.Predicate) error
MultiSaveAndRemove provides a mock function with given fields: saves, removals, preds
func (*TxnKV) MultiSaveAndRemoveWithPrefix ¶
func (_m *TxnKV) MultiSaveAndRemoveWithPrefix(saves map[string]string, removals []string, preds ...predicates.Predicate) error
MultiSaveAndRemoveWithPrefix provides a mock function with given fields: saves, removals, preds
func (*TxnKV) RemoveWithPrefix ¶
RemoveWithPrefix provides a mock function with given fields: key
type TxnKV_Close_Call ¶
TxnKV_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*TxnKV_Close_Call) Return ¶
func (_c *TxnKV_Close_Call) Return() *TxnKV_Close_Call
func (*TxnKV_Close_Call) Run ¶
func (_c *TxnKV_Close_Call) Run(run func()) *TxnKV_Close_Call
func (*TxnKV_Close_Call) RunAndReturn ¶
func (_c *TxnKV_Close_Call) RunAndReturn(run func()) *TxnKV_Close_Call
type TxnKV_Expecter ¶
type TxnKV_Expecter struct {
// contains filtered or unexported fields
}
func (*TxnKV_Expecter) Close ¶
func (_e *TxnKV_Expecter) Close() *TxnKV_Close_Call
Close is a helper method to define mock.On call
func (*TxnKV_Expecter) Has ¶
func (_e *TxnKV_Expecter) Has(key interface{}) *TxnKV_Has_Call
Has is a helper method to define mock.On call
- key string
func (*TxnKV_Expecter) HasPrefix ¶
func (_e *TxnKV_Expecter) HasPrefix(prefix interface{}) *TxnKV_HasPrefix_Call
HasPrefix is a helper method to define mock.On call
- prefix string
func (*TxnKV_Expecter) Load ¶
func (_e *TxnKV_Expecter) Load(key interface{}) *TxnKV_Load_Call
Load is a helper method to define mock.On call
- key string
func (*TxnKV_Expecter) LoadWithPrefix ¶
func (_e *TxnKV_Expecter) LoadWithPrefix(key interface{}) *TxnKV_LoadWithPrefix_Call
LoadWithPrefix is a helper method to define mock.On call
- key string
func (*TxnKV_Expecter) MultiLoad ¶
func (_e *TxnKV_Expecter) MultiLoad(keys interface{}) *TxnKV_MultiLoad_Call
MultiLoad is a helper method to define mock.On call
- keys []string
func (*TxnKV_Expecter) MultiRemove ¶
func (_e *TxnKV_Expecter) MultiRemove(keys interface{}) *TxnKV_MultiRemove_Call
MultiRemove is a helper method to define mock.On call
- keys []string
func (*TxnKV_Expecter) MultiSave ¶
func (_e *TxnKV_Expecter) MultiSave(kvs interface{}) *TxnKV_MultiSave_Call
MultiSave is a helper method to define mock.On call
- kvs map[string]string
func (*TxnKV_Expecter) MultiSaveAndRemove ¶
func (_e *TxnKV_Expecter) MultiSaveAndRemove(saves interface{}, removals interface{}, preds ...interface{}) *TxnKV_MultiSaveAndRemove_Call
MultiSaveAndRemove is a helper method to define mock.On call
- saves map[string]string
- removals []string
- preds ...predicates.Predicate
func (*TxnKV_Expecter) MultiSaveAndRemoveWithPrefix ¶
func (_e *TxnKV_Expecter) MultiSaveAndRemoveWithPrefix(saves interface{}, removals interface{}, preds ...interface{}) *TxnKV_MultiSaveAndRemoveWithPrefix_Call
MultiSaveAndRemoveWithPrefix is a helper method to define mock.On call
- saves map[string]string
- removals []string
- preds ...predicates.Predicate
func (*TxnKV_Expecter) Remove ¶
func (_e *TxnKV_Expecter) Remove(key interface{}) *TxnKV_Remove_Call
Remove is a helper method to define mock.On call
- key string
func (*TxnKV_Expecter) RemoveWithPrefix ¶
func (_e *TxnKV_Expecter) RemoveWithPrefix(key interface{}) *TxnKV_RemoveWithPrefix_Call
RemoveWithPrefix is a helper method to define mock.On call
- key string
func (*TxnKV_Expecter) Save ¶
func (_e *TxnKV_Expecter) Save(key interface{}, value interface{}) *TxnKV_Save_Call
Save is a helper method to define mock.On call
- key string
- value string
type TxnKV_HasPrefix_Call ¶
TxnKV_HasPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasPrefix'
func (*TxnKV_HasPrefix_Call) Return ¶
func (_c *TxnKV_HasPrefix_Call) Return(_a0 bool, _a1 error) *TxnKV_HasPrefix_Call
func (*TxnKV_HasPrefix_Call) Run ¶
func (_c *TxnKV_HasPrefix_Call) Run(run func(prefix string)) *TxnKV_HasPrefix_Call
func (*TxnKV_HasPrefix_Call) RunAndReturn ¶
func (_c *TxnKV_HasPrefix_Call) RunAndReturn(run func(string) (bool, error)) *TxnKV_HasPrefix_Call
type TxnKV_Has_Call ¶
TxnKV_Has_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Has'
func (*TxnKV_Has_Call) Return ¶
func (_c *TxnKV_Has_Call) Return(_a0 bool, _a1 error) *TxnKV_Has_Call
func (*TxnKV_Has_Call) Run ¶
func (_c *TxnKV_Has_Call) Run(run func(key string)) *TxnKV_Has_Call
func (*TxnKV_Has_Call) RunAndReturn ¶
func (_c *TxnKV_Has_Call) RunAndReturn(run func(string) (bool, error)) *TxnKV_Has_Call
type TxnKV_LoadWithPrefix_Call ¶
TxnKV_LoadWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadWithPrefix'
func (*TxnKV_LoadWithPrefix_Call) Return ¶
func (_c *TxnKV_LoadWithPrefix_Call) Return(_a0 []string, _a1 []string, _a2 error) *TxnKV_LoadWithPrefix_Call
func (*TxnKV_LoadWithPrefix_Call) Run ¶
func (_c *TxnKV_LoadWithPrefix_Call) Run(run func(key string)) *TxnKV_LoadWithPrefix_Call
func (*TxnKV_LoadWithPrefix_Call) RunAndReturn ¶
func (_c *TxnKV_LoadWithPrefix_Call) RunAndReturn(run func(string) ([]string, []string, error)) *TxnKV_LoadWithPrefix_Call
type TxnKV_Load_Call ¶
TxnKV_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'
func (*TxnKV_Load_Call) Return ¶
func (_c *TxnKV_Load_Call) Return(_a0 string, _a1 error) *TxnKV_Load_Call
func (*TxnKV_Load_Call) Run ¶
func (_c *TxnKV_Load_Call) Run(run func(key string)) *TxnKV_Load_Call
func (*TxnKV_Load_Call) RunAndReturn ¶
func (_c *TxnKV_Load_Call) RunAndReturn(run func(string) (string, error)) *TxnKV_Load_Call
type TxnKV_MultiLoad_Call ¶
TxnKV_MultiLoad_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiLoad'
func (*TxnKV_MultiLoad_Call) Return ¶
func (_c *TxnKV_MultiLoad_Call) Return(_a0 []string, _a1 error) *TxnKV_MultiLoad_Call
func (*TxnKV_MultiLoad_Call) Run ¶
func (_c *TxnKV_MultiLoad_Call) Run(run func(keys []string)) *TxnKV_MultiLoad_Call
func (*TxnKV_MultiLoad_Call) RunAndReturn ¶
func (_c *TxnKV_MultiLoad_Call) RunAndReturn(run func([]string) ([]string, error)) *TxnKV_MultiLoad_Call
type TxnKV_MultiRemove_Call ¶
TxnKV_MultiRemove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiRemove'
func (*TxnKV_MultiRemove_Call) Return ¶
func (_c *TxnKV_MultiRemove_Call) Return(_a0 error) *TxnKV_MultiRemove_Call
func (*TxnKV_MultiRemove_Call) Run ¶
func (_c *TxnKV_MultiRemove_Call) Run(run func(keys []string)) *TxnKV_MultiRemove_Call
func (*TxnKV_MultiRemove_Call) RunAndReturn ¶
func (_c *TxnKV_MultiRemove_Call) RunAndReturn(run func([]string) error) *TxnKV_MultiRemove_Call
type TxnKV_MultiSaveAndRemoveWithPrefix_Call ¶
TxnKV_MultiSaveAndRemoveWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSaveAndRemoveWithPrefix'
func (*TxnKV_MultiSaveAndRemoveWithPrefix_Call) Return ¶
func (_c *TxnKV_MultiSaveAndRemoveWithPrefix_Call) Return(_a0 error) *TxnKV_MultiSaveAndRemoveWithPrefix_Call
func (*TxnKV_MultiSaveAndRemoveWithPrefix_Call) Run ¶
func (_c *TxnKV_MultiSaveAndRemoveWithPrefix_Call) Run(run func(saves map[string]string, removals []string, preds ...predicates.Predicate)) *TxnKV_MultiSaveAndRemoveWithPrefix_Call
func (*TxnKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn ¶
func (_c *TxnKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *TxnKV_MultiSaveAndRemoveWithPrefix_Call
type TxnKV_MultiSaveAndRemove_Call ¶
TxnKV_MultiSaveAndRemove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSaveAndRemove'
func (*TxnKV_MultiSaveAndRemove_Call) Return ¶
func (_c *TxnKV_MultiSaveAndRemove_Call) Return(_a0 error) *TxnKV_MultiSaveAndRemove_Call
func (*TxnKV_MultiSaveAndRemove_Call) Run ¶
func (_c *TxnKV_MultiSaveAndRemove_Call) Run(run func(saves map[string]string, removals []string, preds ...predicates.Predicate)) *TxnKV_MultiSaveAndRemove_Call
func (*TxnKV_MultiSaveAndRemove_Call) RunAndReturn ¶
func (_c *TxnKV_MultiSaveAndRemove_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *TxnKV_MultiSaveAndRemove_Call
type TxnKV_MultiSave_Call ¶
TxnKV_MultiSave_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSave'
func (*TxnKV_MultiSave_Call) Return ¶
func (_c *TxnKV_MultiSave_Call) Return(_a0 error) *TxnKV_MultiSave_Call
func (*TxnKV_MultiSave_Call) Run ¶
func (_c *TxnKV_MultiSave_Call) Run(run func(kvs map[string]string)) *TxnKV_MultiSave_Call
func (*TxnKV_MultiSave_Call) RunAndReturn ¶
func (_c *TxnKV_MultiSave_Call) RunAndReturn(run func(map[string]string) error) *TxnKV_MultiSave_Call
type TxnKV_RemoveWithPrefix_Call ¶
TxnKV_RemoveWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveWithPrefix'
func (*TxnKV_RemoveWithPrefix_Call) Return ¶
func (_c *TxnKV_RemoveWithPrefix_Call) Return(_a0 error) *TxnKV_RemoveWithPrefix_Call
func (*TxnKV_RemoveWithPrefix_Call) Run ¶
func (_c *TxnKV_RemoveWithPrefix_Call) Run(run func(key string)) *TxnKV_RemoveWithPrefix_Call
func (*TxnKV_RemoveWithPrefix_Call) RunAndReturn ¶
func (_c *TxnKV_RemoveWithPrefix_Call) RunAndReturn(run func(string) error) *TxnKV_RemoveWithPrefix_Call
type TxnKV_Remove_Call ¶
TxnKV_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*TxnKV_Remove_Call) Return ¶
func (_c *TxnKV_Remove_Call) Return(_a0 error) *TxnKV_Remove_Call
func (*TxnKV_Remove_Call) Run ¶
func (_c *TxnKV_Remove_Call) Run(run func(key string)) *TxnKV_Remove_Call
func (*TxnKV_Remove_Call) RunAndReturn ¶
func (_c *TxnKV_Remove_Call) RunAndReturn(run func(string) error) *TxnKV_Remove_Call
type TxnKV_Save_Call ¶
TxnKV_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*TxnKV_Save_Call) Return ¶
func (_c *TxnKV_Save_Call) Return(_a0 error) *TxnKV_Save_Call
func (*TxnKV_Save_Call) Run ¶
func (_c *TxnKV_Save_Call) Run(run func(key string, value string)) *TxnKV_Save_Call
func (*TxnKV_Save_Call) RunAndReturn ¶
func (_c *TxnKV_Save_Call) RunAndReturn(run func(string, string) error) *TxnKV_Save_Call
type WatchKV ¶
WatchKV is an autogenerated mock type for the WatchKV type
func NewWatchKV ¶
NewWatchKV creates a new instance of WatchKV. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*WatchKV) Close ¶
func (_m *WatchKV) Close()
Close provides a mock function with given fields:
func (*WatchKV) CompareVersionAndSwap ¶
CompareVersionAndSwap provides a mock function with given fields: key, version, target
func (*WatchKV) EXPECT ¶
func (_m *WatchKV) EXPECT() *WatchKV_Expecter
func (*WatchKV) LoadWithPrefix ¶
LoadWithPrefix provides a mock function with given fields: key
func (*WatchKV) MultiRemove ¶
MultiRemove provides a mock function with given fields: keys
func (*WatchKV) MultiSaveAndRemove ¶
func (_m *WatchKV) MultiSaveAndRemove(saves map[string]string, removals []string, preds ...predicates.Predicate) error
MultiSaveAndRemove provides a mock function with given fields: saves, removals, preds
func (*WatchKV) MultiSaveAndRemoveWithPrefix ¶
func (_m *WatchKV) MultiSaveAndRemoveWithPrefix(saves map[string]string, removals []string, preds ...predicates.Predicate) error
MultiSaveAndRemoveWithPrefix provides a mock function with given fields: saves, removals, preds
func (*WatchKV) RemoveWithPrefix ¶
RemoveWithPrefix provides a mock function with given fields: key
func (*WatchKV) WalkWithPrefix ¶
func (_m *WatchKV) WalkWithPrefix(prefix string, paginationSize int, fn func([]byte, []byte) error) error
WalkWithPrefix provides a mock function with given fields: prefix, paginationSize, fn
func (*WatchKV) WatchWithPrefix ¶
WatchWithPrefix provides a mock function with given fields: key
type WatchKV_Close_Call ¶
WatchKV_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*WatchKV_Close_Call) Return ¶
func (_c *WatchKV_Close_Call) Return() *WatchKV_Close_Call
func (*WatchKV_Close_Call) Run ¶
func (_c *WatchKV_Close_Call) Run(run func()) *WatchKV_Close_Call
func (*WatchKV_Close_Call) RunAndReturn ¶
func (_c *WatchKV_Close_Call) RunAndReturn(run func()) *WatchKV_Close_Call
type WatchKV_CompareVersionAndSwap_Call ¶
WatchKV_CompareVersionAndSwap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompareVersionAndSwap'
func (*WatchKV_CompareVersionAndSwap_Call) Return ¶
func (_c *WatchKV_CompareVersionAndSwap_Call) Return(_a0 bool, _a1 error) *WatchKV_CompareVersionAndSwap_Call
func (*WatchKV_CompareVersionAndSwap_Call) Run ¶
func (_c *WatchKV_CompareVersionAndSwap_Call) Run(run func(key string, version int64, target string)) *WatchKV_CompareVersionAndSwap_Call
func (*WatchKV_CompareVersionAndSwap_Call) RunAndReturn ¶
func (_c *WatchKV_CompareVersionAndSwap_Call) RunAndReturn(run func(string, int64, string) (bool, error)) *WatchKV_CompareVersionAndSwap_Call
type WatchKV_Expecter ¶
type WatchKV_Expecter struct {
// contains filtered or unexported fields
}
func (*WatchKV_Expecter) Close ¶
func (_e *WatchKV_Expecter) Close() *WatchKV_Close_Call
Close is a helper method to define mock.On call
func (*WatchKV_Expecter) CompareVersionAndSwap ¶
func (_e *WatchKV_Expecter) CompareVersionAndSwap(key interface{}, version interface{}, target interface{}) *WatchKV_CompareVersionAndSwap_Call
CompareVersionAndSwap is a helper method to define mock.On call
- key string
- version int64
- target string
func (*WatchKV_Expecter) GetPath ¶
func (_e *WatchKV_Expecter) GetPath(key interface{}) *WatchKV_GetPath_Call
GetPath is a helper method to define mock.On call
- key string
func (*WatchKV_Expecter) Has ¶
func (_e *WatchKV_Expecter) Has(key interface{}) *WatchKV_Has_Call
Has is a helper method to define mock.On call
- key string
func (*WatchKV_Expecter) HasPrefix ¶
func (_e *WatchKV_Expecter) HasPrefix(prefix interface{}) *WatchKV_HasPrefix_Call
HasPrefix is a helper method to define mock.On call
- prefix string
func (*WatchKV_Expecter) Load ¶
func (_e *WatchKV_Expecter) Load(key interface{}) *WatchKV_Load_Call
Load is a helper method to define mock.On call
- key string
func (*WatchKV_Expecter) LoadWithPrefix ¶
func (_e *WatchKV_Expecter) LoadWithPrefix(key interface{}) *WatchKV_LoadWithPrefix_Call
LoadWithPrefix is a helper method to define mock.On call
- key string
func (*WatchKV_Expecter) MultiLoad ¶
func (_e *WatchKV_Expecter) MultiLoad(keys interface{}) *WatchKV_MultiLoad_Call
MultiLoad is a helper method to define mock.On call
- keys []string
func (*WatchKV_Expecter) MultiRemove ¶
func (_e *WatchKV_Expecter) MultiRemove(keys interface{}) *WatchKV_MultiRemove_Call
MultiRemove is a helper method to define mock.On call
- keys []string
func (*WatchKV_Expecter) MultiSave ¶
func (_e *WatchKV_Expecter) MultiSave(kvs interface{}) *WatchKV_MultiSave_Call
MultiSave is a helper method to define mock.On call
- kvs map[string]string
func (*WatchKV_Expecter) MultiSaveAndRemove ¶
func (_e *WatchKV_Expecter) MultiSaveAndRemove(saves interface{}, removals interface{}, preds ...interface{}) *WatchKV_MultiSaveAndRemove_Call
MultiSaveAndRemove is a helper method to define mock.On call
- saves map[string]string
- removals []string
- preds ...predicates.Predicate
func (*WatchKV_Expecter) MultiSaveAndRemoveWithPrefix ¶
func (_e *WatchKV_Expecter) MultiSaveAndRemoveWithPrefix(saves interface{}, removals interface{}, preds ...interface{}) *WatchKV_MultiSaveAndRemoveWithPrefix_Call
MultiSaveAndRemoveWithPrefix is a helper method to define mock.On call
- saves map[string]string
- removals []string
- preds ...predicates.Predicate
func (*WatchKV_Expecter) Remove ¶
func (_e *WatchKV_Expecter) Remove(key interface{}) *WatchKV_Remove_Call
Remove is a helper method to define mock.On call
- key string
func (*WatchKV_Expecter) RemoveWithPrefix ¶
func (_e *WatchKV_Expecter) RemoveWithPrefix(key interface{}) *WatchKV_RemoveWithPrefix_Call
RemoveWithPrefix is a helper method to define mock.On call
- key string
func (*WatchKV_Expecter) Save ¶
func (_e *WatchKV_Expecter) Save(key interface{}, value interface{}) *WatchKV_Save_Call
Save is a helper method to define mock.On call
- key string
- value string
func (*WatchKV_Expecter) WalkWithPrefix ¶
func (_e *WatchKV_Expecter) WalkWithPrefix(prefix interface{}, paginationSize interface{}, fn interface{}) *WatchKV_WalkWithPrefix_Call
WalkWithPrefix is a helper method to define mock.On call
- prefix string
- paginationSize int
- fn func([]byte , []byte) error
func (*WatchKV_Expecter) Watch ¶
func (_e *WatchKV_Expecter) Watch(key interface{}) *WatchKV_Watch_Call
Watch is a helper method to define mock.On call
- key string
func (*WatchKV_Expecter) WatchWithPrefix ¶
func (_e *WatchKV_Expecter) WatchWithPrefix(key interface{}) *WatchKV_WatchWithPrefix_Call
WatchWithPrefix is a helper method to define mock.On call
- key string
func (*WatchKV_Expecter) WatchWithRevision ¶
func (_e *WatchKV_Expecter) WatchWithRevision(key interface{}, revision interface{}) *WatchKV_WatchWithRevision_Call
WatchWithRevision is a helper method to define mock.On call
- key string
- revision int64
type WatchKV_GetPath_Call ¶
WatchKV_GetPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPath'
func (*WatchKV_GetPath_Call) Return ¶
func (_c *WatchKV_GetPath_Call) Return(_a0 string) *WatchKV_GetPath_Call
func (*WatchKV_GetPath_Call) Run ¶
func (_c *WatchKV_GetPath_Call) Run(run func(key string)) *WatchKV_GetPath_Call
func (*WatchKV_GetPath_Call) RunAndReturn ¶
func (_c *WatchKV_GetPath_Call) RunAndReturn(run func(string) string) *WatchKV_GetPath_Call
type WatchKV_HasPrefix_Call ¶
WatchKV_HasPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasPrefix'
func (*WatchKV_HasPrefix_Call) Return ¶
func (_c *WatchKV_HasPrefix_Call) Return(_a0 bool, _a1 error) *WatchKV_HasPrefix_Call
func (*WatchKV_HasPrefix_Call) Run ¶
func (_c *WatchKV_HasPrefix_Call) Run(run func(prefix string)) *WatchKV_HasPrefix_Call
func (*WatchKV_HasPrefix_Call) RunAndReturn ¶
func (_c *WatchKV_HasPrefix_Call) RunAndReturn(run func(string) (bool, error)) *WatchKV_HasPrefix_Call
type WatchKV_Has_Call ¶
WatchKV_Has_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Has'
func (*WatchKV_Has_Call) Return ¶
func (_c *WatchKV_Has_Call) Return(_a0 bool, _a1 error) *WatchKV_Has_Call
func (*WatchKV_Has_Call) Run ¶
func (_c *WatchKV_Has_Call) Run(run func(key string)) *WatchKV_Has_Call
func (*WatchKV_Has_Call) RunAndReturn ¶
func (_c *WatchKV_Has_Call) RunAndReturn(run func(string) (bool, error)) *WatchKV_Has_Call
type WatchKV_LoadWithPrefix_Call ¶
WatchKV_LoadWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadWithPrefix'
func (*WatchKV_LoadWithPrefix_Call) Return ¶
func (_c *WatchKV_LoadWithPrefix_Call) Return(_a0 []string, _a1 []string, _a2 error) *WatchKV_LoadWithPrefix_Call
func (*WatchKV_LoadWithPrefix_Call) Run ¶
func (_c *WatchKV_LoadWithPrefix_Call) Run(run func(key string)) *WatchKV_LoadWithPrefix_Call
func (*WatchKV_LoadWithPrefix_Call) RunAndReturn ¶
func (_c *WatchKV_LoadWithPrefix_Call) RunAndReturn(run func(string) ([]string, []string, error)) *WatchKV_LoadWithPrefix_Call
type WatchKV_Load_Call ¶
WatchKV_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'
func (*WatchKV_Load_Call) Return ¶
func (_c *WatchKV_Load_Call) Return(_a0 string, _a1 error) *WatchKV_Load_Call
func (*WatchKV_Load_Call) Run ¶
func (_c *WatchKV_Load_Call) Run(run func(key string)) *WatchKV_Load_Call
func (*WatchKV_Load_Call) RunAndReturn ¶
func (_c *WatchKV_Load_Call) RunAndReturn(run func(string) (string, error)) *WatchKV_Load_Call
type WatchKV_MultiLoad_Call ¶
WatchKV_MultiLoad_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiLoad'
func (*WatchKV_MultiLoad_Call) Return ¶
func (_c *WatchKV_MultiLoad_Call) Return(_a0 []string, _a1 error) *WatchKV_MultiLoad_Call
func (*WatchKV_MultiLoad_Call) Run ¶
func (_c *WatchKV_MultiLoad_Call) Run(run func(keys []string)) *WatchKV_MultiLoad_Call
func (*WatchKV_MultiLoad_Call) RunAndReturn ¶
func (_c *WatchKV_MultiLoad_Call) RunAndReturn(run func([]string) ([]string, error)) *WatchKV_MultiLoad_Call
type WatchKV_MultiRemove_Call ¶
WatchKV_MultiRemove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiRemove'
func (*WatchKV_MultiRemove_Call) Return ¶
func (_c *WatchKV_MultiRemove_Call) Return(_a0 error) *WatchKV_MultiRemove_Call
func (*WatchKV_MultiRemove_Call) Run ¶
func (_c *WatchKV_MultiRemove_Call) Run(run func(keys []string)) *WatchKV_MultiRemove_Call
func (*WatchKV_MultiRemove_Call) RunAndReturn ¶
func (_c *WatchKV_MultiRemove_Call) RunAndReturn(run func([]string) error) *WatchKV_MultiRemove_Call
type WatchKV_MultiSaveAndRemoveWithPrefix_Call ¶
WatchKV_MultiSaveAndRemoveWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSaveAndRemoveWithPrefix'
func (*WatchKV_MultiSaveAndRemoveWithPrefix_Call) Return ¶
func (_c *WatchKV_MultiSaveAndRemoveWithPrefix_Call) Return(_a0 error) *WatchKV_MultiSaveAndRemoveWithPrefix_Call
func (*WatchKV_MultiSaveAndRemoveWithPrefix_Call) Run ¶
func (_c *WatchKV_MultiSaveAndRemoveWithPrefix_Call) Run(run func(saves map[string]string, removals []string, preds ...predicates.Predicate)) *WatchKV_MultiSaveAndRemoveWithPrefix_Call
func (*WatchKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn ¶
func (_c *WatchKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *WatchKV_MultiSaveAndRemoveWithPrefix_Call
type WatchKV_MultiSaveAndRemove_Call ¶
WatchKV_MultiSaveAndRemove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSaveAndRemove'
func (*WatchKV_MultiSaveAndRemove_Call) Return ¶
func (_c *WatchKV_MultiSaveAndRemove_Call) Return(_a0 error) *WatchKV_MultiSaveAndRemove_Call
func (*WatchKV_MultiSaveAndRemove_Call) Run ¶
func (_c *WatchKV_MultiSaveAndRemove_Call) Run(run func(saves map[string]string, removals []string, preds ...predicates.Predicate)) *WatchKV_MultiSaveAndRemove_Call
func (*WatchKV_MultiSaveAndRemove_Call) RunAndReturn ¶
func (_c *WatchKV_MultiSaveAndRemove_Call) RunAndReturn(run func(map[string]string, []string, ...predicates.Predicate) error) *WatchKV_MultiSaveAndRemove_Call
type WatchKV_MultiSave_Call ¶
WatchKV_MultiSave_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSave'
func (*WatchKV_MultiSave_Call) Return ¶
func (_c *WatchKV_MultiSave_Call) Return(_a0 error) *WatchKV_MultiSave_Call
func (*WatchKV_MultiSave_Call) Run ¶
func (_c *WatchKV_MultiSave_Call) Run(run func(kvs map[string]string)) *WatchKV_MultiSave_Call
func (*WatchKV_MultiSave_Call) RunAndReturn ¶
func (_c *WatchKV_MultiSave_Call) RunAndReturn(run func(map[string]string) error) *WatchKV_MultiSave_Call
type WatchKV_RemoveWithPrefix_Call ¶
WatchKV_RemoveWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveWithPrefix'
func (*WatchKV_RemoveWithPrefix_Call) Return ¶
func (_c *WatchKV_RemoveWithPrefix_Call) Return(_a0 error) *WatchKV_RemoveWithPrefix_Call
func (*WatchKV_RemoveWithPrefix_Call) Run ¶
func (_c *WatchKV_RemoveWithPrefix_Call) Run(run func(key string)) *WatchKV_RemoveWithPrefix_Call
func (*WatchKV_RemoveWithPrefix_Call) RunAndReturn ¶
func (_c *WatchKV_RemoveWithPrefix_Call) RunAndReturn(run func(string) error) *WatchKV_RemoveWithPrefix_Call
type WatchKV_Remove_Call ¶
WatchKV_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*WatchKV_Remove_Call) Return ¶
func (_c *WatchKV_Remove_Call) Return(_a0 error) *WatchKV_Remove_Call
func (*WatchKV_Remove_Call) Run ¶
func (_c *WatchKV_Remove_Call) Run(run func(key string)) *WatchKV_Remove_Call
func (*WatchKV_Remove_Call) RunAndReturn ¶
func (_c *WatchKV_Remove_Call) RunAndReturn(run func(string) error) *WatchKV_Remove_Call
type WatchKV_Save_Call ¶
WatchKV_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*WatchKV_Save_Call) Return ¶
func (_c *WatchKV_Save_Call) Return(_a0 error) *WatchKV_Save_Call
func (*WatchKV_Save_Call) Run ¶
func (_c *WatchKV_Save_Call) Run(run func(key string, value string)) *WatchKV_Save_Call
func (*WatchKV_Save_Call) RunAndReturn ¶
func (_c *WatchKV_Save_Call) RunAndReturn(run func(string, string) error) *WatchKV_Save_Call
type WatchKV_WalkWithPrefix_Call ¶
WatchKV_WalkWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WalkWithPrefix'
func (*WatchKV_WalkWithPrefix_Call) Return ¶
func (_c *WatchKV_WalkWithPrefix_Call) Return(_a0 error) *WatchKV_WalkWithPrefix_Call
func (*WatchKV_WalkWithPrefix_Call) Run ¶
func (_c *WatchKV_WalkWithPrefix_Call) Run(run func(prefix string, paginationSize int, fn func([]byte, []byte) error)) *WatchKV_WalkWithPrefix_Call
func (*WatchKV_WalkWithPrefix_Call) RunAndReturn ¶
func (_c *WatchKV_WalkWithPrefix_Call) RunAndReturn(run func(string, int, func([]byte, []byte) error) error) *WatchKV_WalkWithPrefix_Call
type WatchKV_WatchWithPrefix_Call ¶
WatchKV_WatchWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WatchWithPrefix'
func (*WatchKV_WatchWithPrefix_Call) Return ¶
func (_c *WatchKV_WatchWithPrefix_Call) Return(_a0 clientv3.WatchChan) *WatchKV_WatchWithPrefix_Call
func (*WatchKV_WatchWithPrefix_Call) Run ¶
func (_c *WatchKV_WatchWithPrefix_Call) Run(run func(key string)) *WatchKV_WatchWithPrefix_Call
func (*WatchKV_WatchWithPrefix_Call) RunAndReturn ¶
func (_c *WatchKV_WatchWithPrefix_Call) RunAndReturn(run func(string) clientv3.WatchChan) *WatchKV_WatchWithPrefix_Call
type WatchKV_WatchWithRevision_Call ¶
WatchKV_WatchWithRevision_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WatchWithRevision'
func (*WatchKV_WatchWithRevision_Call) Return ¶
func (_c *WatchKV_WatchWithRevision_Call) Return(_a0 clientv3.WatchChan) *WatchKV_WatchWithRevision_Call
func (*WatchKV_WatchWithRevision_Call) Run ¶
func (_c *WatchKV_WatchWithRevision_Call) Run(run func(key string, revision int64)) *WatchKV_WatchWithRevision_Call
func (*WatchKV_WatchWithRevision_Call) RunAndReturn ¶
func (_c *WatchKV_WatchWithRevision_Call) RunAndReturn(run func(string, int64) clientv3.WatchChan) *WatchKV_WatchWithRevision_Call
type WatchKV_Watch_Call ¶
WatchKV_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*WatchKV_Watch_Call) Return ¶
func (_c *WatchKV_Watch_Call) Return(_a0 clientv3.WatchChan) *WatchKV_Watch_Call
func (*WatchKV_Watch_Call) Run ¶
func (_c *WatchKV_Watch_Call) Run(run func(key string)) *WatchKV_Watch_Call
func (*WatchKV_Watch_Call) RunAndReturn ¶
func (_c *WatchKV_Watch_Call) RunAndReturn(run func(string) clientv3.WatchChan) *WatchKV_Watch_Call