mocks

package
v0.10.3-0...-27c22d1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaKv

type MetaKv struct {
	mock.Mock
}

MetaKv is an autogenerated mock type for the MetaKv type

func NewMetaKv

func NewMetaKv(t interface {
	mock.TestingT
	Cleanup(func())
}) *MetaKv

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) Close

func (_m *MetaKv) Close()

Close provides a mock function with given fields:

func (*MetaKv) CompareVersionAndSwap

func (_m *MetaKv) CompareVersionAndSwap(key string, version int64, target string) (bool, error)

CompareVersionAndSwap provides a mock function with given fields: key, version, target

func (*MetaKv) EXPECT

func (_m *MetaKv) EXPECT() *MetaKv_Expecter

func (*MetaKv) GetPath

func (_m *MetaKv) GetPath(key string) string

GetPath provides a mock function with given fields: key

func (*MetaKv) Has

func (_m *MetaKv) Has(key string) (bool, error)

Has provides a mock function with given fields: key

func (*MetaKv) HasPrefix

func (_m *MetaKv) HasPrefix(prefix string) (bool, error)

HasPrefix provides a mock function with given fields: prefix

func (*MetaKv) Load

func (_m *MetaKv) Load(key string) (string, error)

Load provides a mock function with given fields: key

func (*MetaKv) LoadWithPrefix

func (_m *MetaKv) LoadWithPrefix(key string) ([]string, []string, error)

LoadWithPrefix provides a mock function with given fields: key

func (*MetaKv) MultiLoad

func (_m *MetaKv) MultiLoad(keys []string) ([]string, error)

MultiLoad provides a mock function with given fields: keys

func (*MetaKv) MultiRemove

func (_m *MetaKv) MultiRemove(keys []string) error

MultiRemove provides a mock function with given fields: keys

func (*MetaKv) MultiSave

func (_m *MetaKv) MultiSave(kvs map[string]string) error

MultiSave provides a mock function with given fields: kvs

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) Remove

func (_m *MetaKv) Remove(key string) error

Remove provides a mock function with given fields: key

func (*MetaKv) RemoveWithPrefix

func (_m *MetaKv) RemoveWithPrefix(key string) error

RemoveWithPrefix provides a mock function with given fields: key

func (*MetaKv) Save

func (_m *MetaKv) Save(key string, value string) error

Save provides a mock function with given fields: key, value

func (*MetaKv) WalkWithPrefix

func (_m *MetaKv) WalkWithPrefix(prefix string, paginationSize int, fn func([]byte, []byte) error) error

WalkWithPrefix provides a mock function with given fields: prefix, paginationSize, fn

type MetaKv_Close_Call

type MetaKv_Close_Call struct {
	*mock.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

type MetaKv_CompareVersionAndSwap_Call struct {
	*mock.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 (*MetaKv_CompareVersionAndSwap_Call) Run

func (*MetaKv_CompareVersionAndSwap_Call) RunAndReturn

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

type MetaKv_GetPath_Call struct {
	*mock.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 (*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

type MetaKv_HasPrefix_Call struct {
	*mock.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

type MetaKv_Has_Call struct {
	*mock.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

type MetaKv_LoadWithPrefix_Call struct {
	*mock.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 (*MetaKv_LoadWithPrefix_Call) Run

func (*MetaKv_LoadWithPrefix_Call) RunAndReturn

func (_c *MetaKv_LoadWithPrefix_Call) RunAndReturn(run func(string) ([]string, []string, error)) *MetaKv_LoadWithPrefix_Call

type MetaKv_Load_Call

type MetaKv_Load_Call struct {
	*mock.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

type MetaKv_MultiLoad_Call struct {
	*mock.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

type MetaKv_MultiRemove_Call struct {
	*mock.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 (*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

type MetaKv_MultiSaveAndRemoveWithPrefix_Call struct {
	*mock.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 (*MetaKv_MultiSaveAndRemoveWithPrefix_Call) Run

func (*MetaKv_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn

type MetaKv_MultiSaveAndRemove_Call

type MetaKv_MultiSaveAndRemove_Call struct {
	*mock.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 (*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

type MetaKv_MultiSave_Call

type MetaKv_MultiSave_Call struct {
	*mock.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 (*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

type MetaKv_RemoveWithPrefix_Call struct {
	*mock.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 (*MetaKv_RemoveWithPrefix_Call) Run

func (*MetaKv_RemoveWithPrefix_Call) RunAndReturn

type MetaKv_Remove_Call

type MetaKv_Remove_Call struct {
	*mock.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

type MetaKv_Save_Call struct {
	*mock.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

type MetaKv_WalkWithPrefix_Call struct {
	*mock.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 (*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

type SnapShotKV struct {
	mock.Mock
}

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

func (_m *SnapShotKV) LoadWithPrefix(key string, ts uint64) ([]string, []string, error)

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

func (*SnapShotKV) Save

func (_m *SnapShotKV) Save(key string, value string, ts uint64) error

Save provides a mock function with given fields: key, value, 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

type SnapShotKV_LoadWithPrefix_Call struct {
	*mock.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 (*SnapShotKV_LoadWithPrefix_Call) Run

func (*SnapShotKV_LoadWithPrefix_Call) RunAndReturn

type SnapShotKV_Load_Call

type SnapShotKV_Load_Call struct {
	*mock.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

type SnapShotKV_MultiSaveAndRemoveWithPrefix_Call struct {
	*mock.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 (*SnapShotKV_MultiSaveAndRemoveWithPrefix_Call) Run

func (*SnapShotKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn

type SnapShotKV_MultiSaveAndRemove_Call

type SnapShotKV_MultiSaveAndRemove_Call struct {
	*mock.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 (*SnapShotKV_MultiSaveAndRemove_Call) Run

func (*SnapShotKV_MultiSaveAndRemove_Call) RunAndReturn

type SnapShotKV_MultiSave_Call

type SnapShotKV_MultiSave_Call struct {
	*mock.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 (*SnapShotKV_MultiSave_Call) Run

func (*SnapShotKV_MultiSave_Call) RunAndReturn

type SnapShotKV_Save_Call

type SnapShotKV_Save_Call struct {
	*mock.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 (*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

type TxnKV struct {
	mock.Mock
}

TxnKV is an autogenerated mock type for the TxnKV type

func NewTxnKV

func NewTxnKV(t interface {
	mock.TestingT
	Cleanup(func())
}) *TxnKV

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) Close

func (_m *TxnKV) Close()

Close provides a mock function with given fields:

func (*TxnKV) EXPECT

func (_m *TxnKV) EXPECT() *TxnKV_Expecter

func (*TxnKV) Has

func (_m *TxnKV) Has(key string) (bool, error)

Has provides a mock function with given fields: key

func (*TxnKV) HasPrefix

func (_m *TxnKV) HasPrefix(prefix string) (bool, error)

HasPrefix provides a mock function with given fields: prefix

func (*TxnKV) Load

func (_m *TxnKV) Load(key string) (string, error)

Load provides a mock function with given fields: key

func (*TxnKV) LoadWithPrefix

func (_m *TxnKV) LoadWithPrefix(key string) ([]string, []string, error)

LoadWithPrefix provides a mock function with given fields: key

func (*TxnKV) MultiLoad

func (_m *TxnKV) MultiLoad(keys []string) ([]string, error)

MultiLoad provides a mock function with given fields: keys

func (*TxnKV) MultiRemove

func (_m *TxnKV) MultiRemove(keys []string) error

MultiRemove provides a mock function with given fields: keys

func (*TxnKV) MultiSave

func (_m *TxnKV) MultiSave(kvs map[string]string) error

MultiSave provides a mock function with given fields: kvs

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) Remove

func (_m *TxnKV) Remove(key string) error

Remove provides a mock function with given fields: key

func (*TxnKV) RemoveWithPrefix

func (_m *TxnKV) RemoveWithPrefix(key string) error

RemoveWithPrefix provides a mock function with given fields: key

func (*TxnKV) Save

func (_m *TxnKV) Save(key string, value string) error

Save provides a mock function with given fields: key, value

type TxnKV_Close_Call

type TxnKV_Close_Call struct {
	*mock.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

type TxnKV_HasPrefix_Call struct {
	*mock.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

type TxnKV_Has_Call struct {
	*mock.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

type TxnKV_LoadWithPrefix_Call struct {
	*mock.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 (*TxnKV_LoadWithPrefix_Call) Run

func (*TxnKV_LoadWithPrefix_Call) RunAndReturn

func (_c *TxnKV_LoadWithPrefix_Call) RunAndReturn(run func(string) ([]string, []string, error)) *TxnKV_LoadWithPrefix_Call

type TxnKV_Load_Call

type TxnKV_Load_Call struct {
	*mock.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

type TxnKV_MultiLoad_Call struct {
	*mock.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

type TxnKV_MultiRemove_Call struct {
	*mock.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 (*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

type TxnKV_MultiSaveAndRemoveWithPrefix_Call struct {
	*mock.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 (*TxnKV_MultiSaveAndRemoveWithPrefix_Call) Run

func (*TxnKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn

type TxnKV_MultiSaveAndRemove_Call

type TxnKV_MultiSaveAndRemove_Call struct {
	*mock.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 (*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

type TxnKV_MultiSave_Call

type TxnKV_MultiSave_Call struct {
	*mock.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 (*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

type TxnKV_RemoveWithPrefix_Call struct {
	*mock.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 (*TxnKV_RemoveWithPrefix_Call) Run

func (*TxnKV_RemoveWithPrefix_Call) RunAndReturn

type TxnKV_Remove_Call

type TxnKV_Remove_Call struct {
	*mock.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

type TxnKV_Save_Call struct {
	*mock.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

type WatchKV struct {
	mock.Mock
}

WatchKV is an autogenerated mock type for the WatchKV type

func NewWatchKV

func NewWatchKV(t interface {
	mock.TestingT
	Cleanup(func())
}) *WatchKV

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

func (_m *WatchKV) CompareVersionAndSwap(key string, version int64, target string) (bool, error)

CompareVersionAndSwap provides a mock function with given fields: key, version, target

func (*WatchKV) EXPECT

func (_m *WatchKV) EXPECT() *WatchKV_Expecter

func (*WatchKV) GetPath

func (_m *WatchKV) GetPath(key string) string

GetPath provides a mock function with given fields: key

func (*WatchKV) Has

func (_m *WatchKV) Has(key string) (bool, error)

Has provides a mock function with given fields: key

func (*WatchKV) HasPrefix

func (_m *WatchKV) HasPrefix(prefix string) (bool, error)

HasPrefix provides a mock function with given fields: prefix

func (*WatchKV) Load

func (_m *WatchKV) Load(key string) (string, error)

Load provides a mock function with given fields: key

func (*WatchKV) LoadWithPrefix

func (_m *WatchKV) LoadWithPrefix(key string) ([]string, []string, error)

LoadWithPrefix provides a mock function with given fields: key

func (*WatchKV) MultiLoad

func (_m *WatchKV) MultiLoad(keys []string) ([]string, error)

MultiLoad provides a mock function with given fields: keys

func (*WatchKV) MultiRemove

func (_m *WatchKV) MultiRemove(keys []string) error

MultiRemove provides a mock function with given fields: keys

func (*WatchKV) MultiSave

func (_m *WatchKV) MultiSave(kvs map[string]string) error

MultiSave provides a mock function with given fields: kvs

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) Remove

func (_m *WatchKV) Remove(key string) error

Remove provides a mock function with given fields: key

func (*WatchKV) RemoveWithPrefix

func (_m *WatchKV) RemoveWithPrefix(key string) error

RemoveWithPrefix provides a mock function with given fields: key

func (*WatchKV) Save

func (_m *WatchKV) Save(key string, value string) error

Save provides a mock function with given fields: key, value

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) Watch

func (_m *WatchKV) Watch(key string) clientv3.WatchChan

Watch provides a mock function with given fields: key

func (*WatchKV) WatchWithPrefix

func (_m *WatchKV) WatchWithPrefix(key string) clientv3.WatchChan

WatchWithPrefix provides a mock function with given fields: key

func (*WatchKV) WatchWithRevision

func (_m *WatchKV) WatchWithRevision(key string, revision int64) clientv3.WatchChan

WatchWithRevision provides a mock function with given fields: key, revision

type WatchKV_Close_Call

type WatchKV_Close_Call struct {
	*mock.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

type WatchKV_CompareVersionAndSwap_Call struct {
	*mock.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 (*WatchKV_CompareVersionAndSwap_Call) Run

func (*WatchKV_CompareVersionAndSwap_Call) RunAndReturn

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

type WatchKV_GetPath_Call struct {
	*mock.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 (*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

type WatchKV_HasPrefix_Call struct {
	*mock.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 (*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

type WatchKV_Has_Call struct {
	*mock.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

type WatchKV_LoadWithPrefix_Call struct {
	*mock.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 (*WatchKV_LoadWithPrefix_Call) Run

func (*WatchKV_LoadWithPrefix_Call) RunAndReturn

type WatchKV_Load_Call

type WatchKV_Load_Call struct {
	*mock.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

type WatchKV_MultiLoad_Call struct {
	*mock.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 (*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

type WatchKV_MultiRemove_Call struct {
	*mock.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 (*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

type WatchKV_MultiSaveAndRemoveWithPrefix_Call struct {
	*mock.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 (*WatchKV_MultiSaveAndRemoveWithPrefix_Call) Run

func (*WatchKV_MultiSaveAndRemoveWithPrefix_Call) RunAndReturn

type WatchKV_MultiSaveAndRemove_Call

type WatchKV_MultiSaveAndRemove_Call struct {
	*mock.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 (*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

type WatchKV_MultiSave_Call

type WatchKV_MultiSave_Call struct {
	*mock.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 (*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

type WatchKV_RemoveWithPrefix_Call struct {
	*mock.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 (*WatchKV_RemoveWithPrefix_Call) Run

func (*WatchKV_RemoveWithPrefix_Call) RunAndReturn

type WatchKV_Remove_Call

type WatchKV_Remove_Call struct {
	*mock.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 (*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

type WatchKV_Save_Call struct {
	*mock.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

type WatchKV_WalkWithPrefix_Call struct {
	*mock.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 (*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

type WatchKV_WatchWithPrefix_Call struct {
	*mock.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 (*WatchKV_WatchWithPrefix_Call) Run

func (*WatchKV_WatchWithPrefix_Call) RunAndReturn

type WatchKV_WatchWithRevision_Call

type WatchKV_WatchWithRevision_Call struct {
	*mock.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 (*WatchKV_WatchWithRevision_Call) Run

func (*WatchKV_WatchWithRevision_Call) RunAndReturn

type WatchKV_Watch_Call

type WatchKV_Watch_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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