Documentation
¶
Index ¶
- type AutoRefresh
- func (_mock *AutoRefresh) DeleteDelayed(id cache.ItemID) error
- func (_m *AutoRefresh) EXPECT() *AutoRefresh_Expecter
- func (_mock *AutoRefresh) Get(id cache.ItemID) (cache.Item, error)
- func (_mock *AutoRefresh) GetOrCreate(id cache.ItemID, item cache.Item) (cache.Item, error)
- func (_mock *AutoRefresh) Start(ctx context.Context) error
- type AutoRefresh_DeleteDelayed_Call
- func (_c *AutoRefresh_DeleteDelayed_Call) Return(err error) *AutoRefresh_DeleteDelayed_Call
- func (_c *AutoRefresh_DeleteDelayed_Call) Run(run func(id cache.ItemID)) *AutoRefresh_DeleteDelayed_Call
- func (_c *AutoRefresh_DeleteDelayed_Call) RunAndReturn(run func(id cache.ItemID) error) *AutoRefresh_DeleteDelayed_Call
- type AutoRefresh_Expecter
- func (_e *AutoRefresh_Expecter) DeleteDelayed(id interface{}) *AutoRefresh_DeleteDelayed_Call
- func (_e *AutoRefresh_Expecter) Get(id interface{}) *AutoRefresh_Get_Call
- func (_e *AutoRefresh_Expecter) GetOrCreate(id interface{}, item interface{}) *AutoRefresh_GetOrCreate_Call
- func (_e *AutoRefresh_Expecter) Start(ctx interface{}) *AutoRefresh_Start_Call
- type AutoRefresh_GetOrCreate_Call
- func (_c *AutoRefresh_GetOrCreate_Call) Return(item1 cache.Item, err error) *AutoRefresh_GetOrCreate_Call
- func (_c *AutoRefresh_GetOrCreate_Call) Run(run func(id cache.ItemID, item cache.Item)) *AutoRefresh_GetOrCreate_Call
- func (_c *AutoRefresh_GetOrCreate_Call) RunAndReturn(run func(id cache.ItemID, item cache.Item) (cache.Item, error)) *AutoRefresh_GetOrCreate_Call
- type AutoRefresh_Get_Call
- type AutoRefresh_Start_Call
- type Item
- type ItemWrapper
- type ItemWrapper_Expecter
- type ItemWrapper_GetID_Call
- type ItemWrapper_GetItem_Call
- type Item_Expecter
- type Item_IsTerminal_Call
- type SecretManager
- type SecretManager_Expecter
- type SecretManager_Get_Call
- func (_c *SecretManager_Get_Call) Return(s string, err error) *SecretManager_Get_Call
- func (_c *SecretManager_Get_Call) Run(run func(ctx context.Context, key string)) *SecretManager_Get_Call
- func (_c *SecretManager_Get_Call) RunAndReturn(run func(ctx context.Context, key string) (string, error)) *SecretManager_Get_Call
- type StringCache
- func (_mock *StringCache) Clear(ctx context.Context) error
- func (_mock *StringCache) Delete(ctx context.Context, key any) error
- func (_m *StringCache) EXPECT() *StringCache_Expecter
- func (_mock *StringCache) Get(ctx context.Context, key any) (string, error)
- func (_mock *StringCache) GetType() string
- func (_mock *StringCache) Invalidate(ctx context.Context, options ...store.InvalidateOption) error
- func (_mock *StringCache) Set(ctx context.Context, key any, object string, options ...store.Option) error
- type StringCache_Clear_Call
- type StringCache_Delete_Call
- func (_c *StringCache_Delete_Call) Return(err error) *StringCache_Delete_Call
- func (_c *StringCache_Delete_Call) Run(run func(ctx context.Context, key any)) *StringCache_Delete_Call
- func (_c *StringCache_Delete_Call) RunAndReturn(run func(ctx context.Context, key any) error) *StringCache_Delete_Call
- type StringCache_Expecter
- func (_e *StringCache_Expecter) Clear(ctx interface{}) *StringCache_Clear_Call
- func (_e *StringCache_Expecter) Delete(ctx interface{}, key interface{}) *StringCache_Delete_Call
- func (_e *StringCache_Expecter) Get(ctx interface{}, key interface{}) *StringCache_Get_Call
- func (_e *StringCache_Expecter) GetType() *StringCache_GetType_Call
- func (_e *StringCache_Expecter) Invalidate(ctx interface{}, options ...interface{}) *StringCache_Invalidate_Call
- func (_e *StringCache_Expecter) Set(ctx interface{}, key interface{}, object interface{}, options ...interface{}) *StringCache_Set_Call
- type StringCache_GetType_Call
- type StringCache_Get_Call
- func (_c *StringCache_Get_Call) Return(s string, err error) *StringCache_Get_Call
- func (_c *StringCache_Get_Call) Run(run func(ctx context.Context, key any)) *StringCache_Get_Call
- func (_c *StringCache_Get_Call) RunAndReturn(run func(ctx context.Context, key any) (string, error)) *StringCache_Get_Call
- type StringCache_Invalidate_Call
- func (_c *StringCache_Invalidate_Call) Return(err error) *StringCache_Invalidate_Call
- func (_c *StringCache_Invalidate_Call) Run(run func(ctx context.Context, options ...store.InvalidateOption)) *StringCache_Invalidate_Call
- func (_c *StringCache_Invalidate_Call) RunAndReturn(run func(ctx context.Context, options ...store.InvalidateOption) error) *StringCache_Invalidate_Call
- type StringCache_Set_Call
- type UInt64Cache
- func (_mock *UInt64Cache) Clear(ctx context.Context) error
- func (_mock *UInt64Cache) Delete(ctx context.Context, key any) error
- func (_m *UInt64Cache) EXPECT() *UInt64Cache_Expecter
- func (_mock *UInt64Cache) Get(ctx context.Context, key any) (uint64, error)
- func (_mock *UInt64Cache) GetType() string
- func (_mock *UInt64Cache) Invalidate(ctx context.Context, options ...store.InvalidateOption) error
- func (_mock *UInt64Cache) Set(ctx context.Context, key any, object uint64, options ...store.Option) error
- type UInt64Cache_Clear_Call
- type UInt64Cache_Delete_Call
- func (_c *UInt64Cache_Delete_Call) Return(err error) *UInt64Cache_Delete_Call
- func (_c *UInt64Cache_Delete_Call) Run(run func(ctx context.Context, key any)) *UInt64Cache_Delete_Call
- func (_c *UInt64Cache_Delete_Call) RunAndReturn(run func(ctx context.Context, key any) error) *UInt64Cache_Delete_Call
- type UInt64Cache_Expecter
- func (_e *UInt64Cache_Expecter) Clear(ctx interface{}) *UInt64Cache_Clear_Call
- func (_e *UInt64Cache_Expecter) Delete(ctx interface{}, key interface{}) *UInt64Cache_Delete_Call
- func (_e *UInt64Cache_Expecter) Get(ctx interface{}, key interface{}) *UInt64Cache_Get_Call
- func (_e *UInt64Cache_Expecter) GetType() *UInt64Cache_GetType_Call
- func (_e *UInt64Cache_Expecter) Invalidate(ctx interface{}, options ...interface{}) *UInt64Cache_Invalidate_Call
- func (_e *UInt64Cache_Expecter) Set(ctx interface{}, key interface{}, object interface{}, options ...interface{}) *UInt64Cache_Set_Call
- type UInt64Cache_GetType_Call
- type UInt64Cache_Get_Call
- func (_c *UInt64Cache_Get_Call) Return(v uint64, err error) *UInt64Cache_Get_Call
- func (_c *UInt64Cache_Get_Call) Run(run func(ctx context.Context, key any)) *UInt64Cache_Get_Call
- func (_c *UInt64Cache_Get_Call) RunAndReturn(run func(ctx context.Context, key any) (uint64, error)) *UInt64Cache_Get_Call
- type UInt64Cache_Invalidate_Call
- func (_c *UInt64Cache_Invalidate_Call) Return(err error) *UInt64Cache_Invalidate_Call
- func (_c *UInt64Cache_Invalidate_Call) Run(run func(ctx context.Context, options ...store.InvalidateOption)) *UInt64Cache_Invalidate_Call
- func (_c *UInt64Cache_Invalidate_Call) RunAndReturn(run func(ctx context.Context, options ...store.InvalidateOption) error) *UInt64Cache_Invalidate_Call
- type UInt64Cache_Set_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoRefresh ¶
AutoRefresh is an autogenerated mock type for the AutoRefresh type
func NewAutoRefresh ¶
func NewAutoRefresh(t interface {
mock.TestingT
Cleanup(func())
}) *AutoRefresh
NewAutoRefresh creates a new instance of AutoRefresh. 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 (*AutoRefresh) DeleteDelayed ¶
func (_mock *AutoRefresh) DeleteDelayed(id cache.ItemID) error
DeleteDelayed provides a mock function for the type AutoRefresh
func (*AutoRefresh) EXPECT ¶
func (_m *AutoRefresh) EXPECT() *AutoRefresh_Expecter
func (*AutoRefresh) GetOrCreate ¶
GetOrCreate provides a mock function for the type AutoRefresh
type AutoRefresh_DeleteDelayed_Call ¶
AutoRefresh_DeleteDelayed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteDelayed'
func (*AutoRefresh_DeleteDelayed_Call) Return ¶
func (_c *AutoRefresh_DeleteDelayed_Call) Return(err error) *AutoRefresh_DeleteDelayed_Call
func (*AutoRefresh_DeleteDelayed_Call) Run ¶
func (_c *AutoRefresh_DeleteDelayed_Call) Run(run func(id cache.ItemID)) *AutoRefresh_DeleteDelayed_Call
func (*AutoRefresh_DeleteDelayed_Call) RunAndReturn ¶
func (_c *AutoRefresh_DeleteDelayed_Call) RunAndReturn(run func(id cache.ItemID) error) *AutoRefresh_DeleteDelayed_Call
type AutoRefresh_Expecter ¶
type AutoRefresh_Expecter struct {
// contains filtered or unexported fields
}
func (*AutoRefresh_Expecter) DeleteDelayed ¶
func (_e *AutoRefresh_Expecter) DeleteDelayed(id interface{}) *AutoRefresh_DeleteDelayed_Call
DeleteDelayed is a helper method to define mock.On call
- id cache.ItemID
func (*AutoRefresh_Expecter) Get ¶
func (_e *AutoRefresh_Expecter) Get(id interface{}) *AutoRefresh_Get_Call
Get is a helper method to define mock.On call
- id cache.ItemID
func (*AutoRefresh_Expecter) GetOrCreate ¶
func (_e *AutoRefresh_Expecter) GetOrCreate(id interface{}, item interface{}) *AutoRefresh_GetOrCreate_Call
GetOrCreate is a helper method to define mock.On call
- id cache.ItemID
- item cache.Item
func (*AutoRefresh_Expecter) Start ¶
func (_e *AutoRefresh_Expecter) Start(ctx interface{}) *AutoRefresh_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
type AutoRefresh_GetOrCreate_Call ¶
AutoRefresh_GetOrCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrCreate'
func (*AutoRefresh_GetOrCreate_Call) Return ¶
func (_c *AutoRefresh_GetOrCreate_Call) Return(item1 cache.Item, err error) *AutoRefresh_GetOrCreate_Call
func (*AutoRefresh_GetOrCreate_Call) Run ¶
func (_c *AutoRefresh_GetOrCreate_Call) Run(run func(id cache.ItemID, item cache.Item)) *AutoRefresh_GetOrCreate_Call
func (*AutoRefresh_GetOrCreate_Call) RunAndReturn ¶
func (_c *AutoRefresh_GetOrCreate_Call) RunAndReturn(run func(id cache.ItemID, item cache.Item) (cache.Item, error)) *AutoRefresh_GetOrCreate_Call
type AutoRefresh_Get_Call ¶
AutoRefresh_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*AutoRefresh_Get_Call) Return ¶
func (_c *AutoRefresh_Get_Call) Return(item cache.Item, err error) *AutoRefresh_Get_Call
func (*AutoRefresh_Get_Call) Run ¶
func (_c *AutoRefresh_Get_Call) Run(run func(id cache.ItemID)) *AutoRefresh_Get_Call
func (*AutoRefresh_Get_Call) RunAndReturn ¶
func (_c *AutoRefresh_Get_Call) RunAndReturn(run func(id cache.ItemID) (cache.Item, error)) *AutoRefresh_Get_Call
type AutoRefresh_Start_Call ¶
AutoRefresh_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*AutoRefresh_Start_Call) Return ¶
func (_c *AutoRefresh_Start_Call) Return(err error) *AutoRefresh_Start_Call
func (*AutoRefresh_Start_Call) Run ¶
func (_c *AutoRefresh_Start_Call) Run(run func(ctx context.Context)) *AutoRefresh_Start_Call
func (*AutoRefresh_Start_Call) RunAndReturn ¶
func (_c *AutoRefresh_Start_Call) RunAndReturn(run func(ctx context.Context) error) *AutoRefresh_Start_Call
type Item ¶
Item is an autogenerated mock type for the Item type
func NewItem ¶
NewItem creates a new instance of Item. 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 (*Item) EXPECT ¶
func (_m *Item) EXPECT() *Item_Expecter
func (*Item) IsTerminal ¶
IsTerminal provides a mock function for the type Item
type ItemWrapper ¶
ItemWrapper is an autogenerated mock type for the ItemWrapper type
func NewItemWrapper ¶
func NewItemWrapper(t interface {
mock.TestingT
Cleanup(func())
}) *ItemWrapper
NewItemWrapper creates a new instance of ItemWrapper. 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 (*ItemWrapper) EXPECT ¶
func (_m *ItemWrapper) EXPECT() *ItemWrapper_Expecter
func (*ItemWrapper) GetID ¶
func (_mock *ItemWrapper) GetID() cache.ItemID
GetID provides a mock function for the type ItemWrapper
func (*ItemWrapper) GetItem ¶
func (_mock *ItemWrapper) GetItem() cache.Item
GetItem provides a mock function for the type ItemWrapper
type ItemWrapper_Expecter ¶
type ItemWrapper_Expecter struct {
// contains filtered or unexported fields
}
func (*ItemWrapper_Expecter) GetID ¶
func (_e *ItemWrapper_Expecter) GetID() *ItemWrapper_GetID_Call
GetID is a helper method to define mock.On call
func (*ItemWrapper_Expecter) GetItem ¶
func (_e *ItemWrapper_Expecter) GetItem() *ItemWrapper_GetItem_Call
GetItem is a helper method to define mock.On call
type ItemWrapper_GetID_Call ¶
ItemWrapper_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*ItemWrapper_GetID_Call) Return ¶
func (_c *ItemWrapper_GetID_Call) Return(v cache.ItemID) *ItemWrapper_GetID_Call
func (*ItemWrapper_GetID_Call) Run ¶
func (_c *ItemWrapper_GetID_Call) Run(run func()) *ItemWrapper_GetID_Call
func (*ItemWrapper_GetID_Call) RunAndReturn ¶
func (_c *ItemWrapper_GetID_Call) RunAndReturn(run func() cache.ItemID) *ItemWrapper_GetID_Call
type ItemWrapper_GetItem_Call ¶
ItemWrapper_GetItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetItem'
func (*ItemWrapper_GetItem_Call) Return ¶
func (_c *ItemWrapper_GetItem_Call) Return(item cache.Item) *ItemWrapper_GetItem_Call
func (*ItemWrapper_GetItem_Call) Run ¶
func (_c *ItemWrapper_GetItem_Call) Run(run func()) *ItemWrapper_GetItem_Call
func (*ItemWrapper_GetItem_Call) RunAndReturn ¶
func (_c *ItemWrapper_GetItem_Call) RunAndReturn(run func() cache.Item) *ItemWrapper_GetItem_Call
type Item_Expecter ¶
type Item_Expecter struct {
// contains filtered or unexported fields
}
func (*Item_Expecter) IsTerminal ¶
func (_e *Item_Expecter) IsTerminal() *Item_IsTerminal_Call
IsTerminal is a helper method to define mock.On call
type Item_IsTerminal_Call ¶
Item_IsTerminal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsTerminal'
func (*Item_IsTerminal_Call) Return ¶
func (_c *Item_IsTerminal_Call) Return(b bool) *Item_IsTerminal_Call
func (*Item_IsTerminal_Call) Run ¶
func (_c *Item_IsTerminal_Call) Run(run func()) *Item_IsTerminal_Call
func (*Item_IsTerminal_Call) RunAndReturn ¶
func (_c *Item_IsTerminal_Call) RunAndReturn(run func() bool) *Item_IsTerminal_Call
type SecretManager ¶ added in v2.0.1
SecretManager is an autogenerated mock type for the SecretManager type
func NewSecretManager ¶ added in v2.0.1
func NewSecretManager(t interface {
mock.TestingT
Cleanup(func())
}) *SecretManager
NewSecretManager creates a new instance of SecretManager. 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 (*SecretManager) EXPECT ¶ added in v2.0.1
func (_m *SecretManager) EXPECT() *SecretManager_Expecter
type SecretManager_Expecter ¶ added in v2.0.1
type SecretManager_Expecter struct {
// contains filtered or unexported fields
}
func (*SecretManager_Expecter) Get ¶ added in v2.0.1
func (_e *SecretManager_Expecter) Get(ctx interface{}, key interface{}) *SecretManager_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key string
type SecretManager_Get_Call ¶ added in v2.0.1
SecretManager_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SecretManager_Get_Call) Return ¶ added in v2.0.1
func (_c *SecretManager_Get_Call) Return(s string, err error) *SecretManager_Get_Call
func (*SecretManager_Get_Call) Run ¶ added in v2.0.1
func (_c *SecretManager_Get_Call) Run(run func(ctx context.Context, key string)) *SecretManager_Get_Call
func (*SecretManager_Get_Call) RunAndReturn ¶ added in v2.0.1
func (_c *SecretManager_Get_Call) RunAndReturn(run func(ctx context.Context, key string) (string, error)) *SecretManager_Get_Call
type StringCache ¶ added in v2.0.1
StringCache is an autogenerated mock type for the StringCache type
func NewStringCache ¶ added in v2.0.1
func NewStringCache(t interface {
mock.TestingT
Cleanup(func())
}) *StringCache
NewStringCache creates a new instance of StringCache. 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 (*StringCache) Clear ¶ added in v2.0.1
func (_mock *StringCache) Clear(ctx context.Context) error
Clear provides a mock function for the type StringCache
func (*StringCache) Delete ¶ added in v2.0.1
func (_mock *StringCache) Delete(ctx context.Context, key any) error
Delete provides a mock function for the type StringCache
func (*StringCache) EXPECT ¶ added in v2.0.1
func (_m *StringCache) EXPECT() *StringCache_Expecter
func (*StringCache) GetType ¶ added in v2.0.1
func (_mock *StringCache) GetType() string
GetType provides a mock function for the type StringCache
func (*StringCache) Invalidate ¶ added in v2.0.1
func (_mock *StringCache) Invalidate(ctx context.Context, options ...store.InvalidateOption) error
Invalidate provides a mock function for the type StringCache
type StringCache_Clear_Call ¶ added in v2.0.1
StringCache_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
func (*StringCache_Clear_Call) Return ¶ added in v2.0.1
func (_c *StringCache_Clear_Call) Return(err error) *StringCache_Clear_Call
func (*StringCache_Clear_Call) Run ¶ added in v2.0.1
func (_c *StringCache_Clear_Call) Run(run func(ctx context.Context)) *StringCache_Clear_Call
func (*StringCache_Clear_Call) RunAndReturn ¶ added in v2.0.1
func (_c *StringCache_Clear_Call) RunAndReturn(run func(ctx context.Context) error) *StringCache_Clear_Call
type StringCache_Delete_Call ¶ added in v2.0.1
StringCache_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*StringCache_Delete_Call) Return ¶ added in v2.0.1
func (_c *StringCache_Delete_Call) Return(err error) *StringCache_Delete_Call
func (*StringCache_Delete_Call) Run ¶ added in v2.0.1
func (_c *StringCache_Delete_Call) Run(run func(ctx context.Context, key any)) *StringCache_Delete_Call
func (*StringCache_Delete_Call) RunAndReturn ¶ added in v2.0.1
func (_c *StringCache_Delete_Call) RunAndReturn(run func(ctx context.Context, key any) error) *StringCache_Delete_Call
type StringCache_Expecter ¶ added in v2.0.1
type StringCache_Expecter struct {
// contains filtered or unexported fields
}
func (*StringCache_Expecter) Clear ¶ added in v2.0.1
func (_e *StringCache_Expecter) Clear(ctx interface{}) *StringCache_Clear_Call
Clear is a helper method to define mock.On call
- ctx context.Context
func (*StringCache_Expecter) Delete ¶ added in v2.0.1
func (_e *StringCache_Expecter) Delete(ctx interface{}, key interface{}) *StringCache_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- key any
func (*StringCache_Expecter) Get ¶ added in v2.0.1
func (_e *StringCache_Expecter) Get(ctx interface{}, key interface{}) *StringCache_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key any
func (*StringCache_Expecter) GetType ¶ added in v2.0.1
func (_e *StringCache_Expecter) GetType() *StringCache_GetType_Call
GetType is a helper method to define mock.On call
func (*StringCache_Expecter) Invalidate ¶ added in v2.0.1
func (_e *StringCache_Expecter) Invalidate(ctx interface{}, options ...interface{}) *StringCache_Invalidate_Call
Invalidate is a helper method to define mock.On call
- ctx context.Context
- options ...store.InvalidateOption
func (*StringCache_Expecter) Set ¶ added in v2.0.1
func (_e *StringCache_Expecter) Set(ctx interface{}, key interface{}, object interface{}, options ...interface{}) *StringCache_Set_Call
Set is a helper method to define mock.On call
- ctx context.Context
- key any
- object string
- options ...store.Option
type StringCache_GetType_Call ¶ added in v2.0.1
StringCache_GetType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetType'
func (*StringCache_GetType_Call) Return ¶ added in v2.0.1
func (_c *StringCache_GetType_Call) Return(s string) *StringCache_GetType_Call
func (*StringCache_GetType_Call) Run ¶ added in v2.0.1
func (_c *StringCache_GetType_Call) Run(run func()) *StringCache_GetType_Call
func (*StringCache_GetType_Call) RunAndReturn ¶ added in v2.0.1
func (_c *StringCache_GetType_Call) RunAndReturn(run func() string) *StringCache_GetType_Call
type StringCache_Get_Call ¶ added in v2.0.1
StringCache_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*StringCache_Get_Call) Return ¶ added in v2.0.1
func (_c *StringCache_Get_Call) Return(s string, err error) *StringCache_Get_Call
func (*StringCache_Get_Call) Run ¶ added in v2.0.1
func (_c *StringCache_Get_Call) Run(run func(ctx context.Context, key any)) *StringCache_Get_Call
func (*StringCache_Get_Call) RunAndReturn ¶ added in v2.0.1
func (_c *StringCache_Get_Call) RunAndReturn(run func(ctx context.Context, key any) (string, error)) *StringCache_Get_Call
type StringCache_Invalidate_Call ¶ added in v2.0.1
StringCache_Invalidate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Invalidate'
func (*StringCache_Invalidate_Call) Return ¶ added in v2.0.1
func (_c *StringCache_Invalidate_Call) Return(err error) *StringCache_Invalidate_Call
func (*StringCache_Invalidate_Call) Run ¶ added in v2.0.1
func (_c *StringCache_Invalidate_Call) Run(run func(ctx context.Context, options ...store.InvalidateOption)) *StringCache_Invalidate_Call
func (*StringCache_Invalidate_Call) RunAndReturn ¶ added in v2.0.1
func (_c *StringCache_Invalidate_Call) RunAndReturn(run func(ctx context.Context, options ...store.InvalidateOption) error) *StringCache_Invalidate_Call
type StringCache_Set_Call ¶ added in v2.0.1
StringCache_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*StringCache_Set_Call) Return ¶ added in v2.0.1
func (_c *StringCache_Set_Call) Return(err error) *StringCache_Set_Call
func (*StringCache_Set_Call) Run ¶ added in v2.0.1
func (_c *StringCache_Set_Call) Run(run func(ctx context.Context, key any, object string, options ...store.Option)) *StringCache_Set_Call
func (*StringCache_Set_Call) RunAndReturn ¶ added in v2.0.1
func (_c *StringCache_Set_Call) RunAndReturn(run func(ctx context.Context, key any, object string, options ...store.Option) error) *StringCache_Set_Call
type UInt64Cache ¶ added in v2.0.1
UInt64Cache is an autogenerated mock type for the UInt64Cache type
func NewUInt64Cache ¶ added in v2.0.1
func NewUInt64Cache(t interface {
mock.TestingT
Cleanup(func())
}) *UInt64Cache
NewUInt64Cache creates a new instance of UInt64Cache. 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 (*UInt64Cache) Clear ¶ added in v2.0.1
func (_mock *UInt64Cache) Clear(ctx context.Context) error
Clear provides a mock function for the type UInt64Cache
func (*UInt64Cache) Delete ¶ added in v2.0.1
func (_mock *UInt64Cache) Delete(ctx context.Context, key any) error
Delete provides a mock function for the type UInt64Cache
func (*UInt64Cache) EXPECT ¶ added in v2.0.1
func (_m *UInt64Cache) EXPECT() *UInt64Cache_Expecter
func (*UInt64Cache) GetType ¶ added in v2.0.1
func (_mock *UInt64Cache) GetType() string
GetType provides a mock function for the type UInt64Cache
func (*UInt64Cache) Invalidate ¶ added in v2.0.1
func (_mock *UInt64Cache) Invalidate(ctx context.Context, options ...store.InvalidateOption) error
Invalidate provides a mock function for the type UInt64Cache
type UInt64Cache_Clear_Call ¶ added in v2.0.1
UInt64Cache_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
func (*UInt64Cache_Clear_Call) Return ¶ added in v2.0.1
func (_c *UInt64Cache_Clear_Call) Return(err error) *UInt64Cache_Clear_Call
func (*UInt64Cache_Clear_Call) Run ¶ added in v2.0.1
func (_c *UInt64Cache_Clear_Call) Run(run func(ctx context.Context)) *UInt64Cache_Clear_Call
func (*UInt64Cache_Clear_Call) RunAndReturn ¶ added in v2.0.1
func (_c *UInt64Cache_Clear_Call) RunAndReturn(run func(ctx context.Context) error) *UInt64Cache_Clear_Call
type UInt64Cache_Delete_Call ¶ added in v2.0.1
UInt64Cache_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*UInt64Cache_Delete_Call) Return ¶ added in v2.0.1
func (_c *UInt64Cache_Delete_Call) Return(err error) *UInt64Cache_Delete_Call
func (*UInt64Cache_Delete_Call) Run ¶ added in v2.0.1
func (_c *UInt64Cache_Delete_Call) Run(run func(ctx context.Context, key any)) *UInt64Cache_Delete_Call
func (*UInt64Cache_Delete_Call) RunAndReturn ¶ added in v2.0.1
func (_c *UInt64Cache_Delete_Call) RunAndReturn(run func(ctx context.Context, key any) error) *UInt64Cache_Delete_Call
type UInt64Cache_Expecter ¶ added in v2.0.1
type UInt64Cache_Expecter struct {
// contains filtered or unexported fields
}
func (*UInt64Cache_Expecter) Clear ¶ added in v2.0.1
func (_e *UInt64Cache_Expecter) Clear(ctx interface{}) *UInt64Cache_Clear_Call
Clear is a helper method to define mock.On call
- ctx context.Context
func (*UInt64Cache_Expecter) Delete ¶ added in v2.0.1
func (_e *UInt64Cache_Expecter) Delete(ctx interface{}, key interface{}) *UInt64Cache_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- key any
func (*UInt64Cache_Expecter) Get ¶ added in v2.0.1
func (_e *UInt64Cache_Expecter) Get(ctx interface{}, key interface{}) *UInt64Cache_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key any
func (*UInt64Cache_Expecter) GetType ¶ added in v2.0.1
func (_e *UInt64Cache_Expecter) GetType() *UInt64Cache_GetType_Call
GetType is a helper method to define mock.On call
func (*UInt64Cache_Expecter) Invalidate ¶ added in v2.0.1
func (_e *UInt64Cache_Expecter) Invalidate(ctx interface{}, options ...interface{}) *UInt64Cache_Invalidate_Call
Invalidate is a helper method to define mock.On call
- ctx context.Context
- options ...store.InvalidateOption
func (*UInt64Cache_Expecter) Set ¶ added in v2.0.1
func (_e *UInt64Cache_Expecter) Set(ctx interface{}, key interface{}, object interface{}, options ...interface{}) *UInt64Cache_Set_Call
Set is a helper method to define mock.On call
- ctx context.Context
- key any
- object uint64
- options ...store.Option
type UInt64Cache_GetType_Call ¶ added in v2.0.1
UInt64Cache_GetType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetType'
func (*UInt64Cache_GetType_Call) Return ¶ added in v2.0.1
func (_c *UInt64Cache_GetType_Call) Return(s string) *UInt64Cache_GetType_Call
func (*UInt64Cache_GetType_Call) Run ¶ added in v2.0.1
func (_c *UInt64Cache_GetType_Call) Run(run func()) *UInt64Cache_GetType_Call
func (*UInt64Cache_GetType_Call) RunAndReturn ¶ added in v2.0.1
func (_c *UInt64Cache_GetType_Call) RunAndReturn(run func() string) *UInt64Cache_GetType_Call
type UInt64Cache_Get_Call ¶ added in v2.0.1
UInt64Cache_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*UInt64Cache_Get_Call) Return ¶ added in v2.0.1
func (_c *UInt64Cache_Get_Call) Return(v uint64, err error) *UInt64Cache_Get_Call
func (*UInt64Cache_Get_Call) Run ¶ added in v2.0.1
func (_c *UInt64Cache_Get_Call) Run(run func(ctx context.Context, key any)) *UInt64Cache_Get_Call
func (*UInt64Cache_Get_Call) RunAndReturn ¶ added in v2.0.1
func (_c *UInt64Cache_Get_Call) RunAndReturn(run func(ctx context.Context, key any) (uint64, error)) *UInt64Cache_Get_Call
type UInt64Cache_Invalidate_Call ¶ added in v2.0.1
UInt64Cache_Invalidate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Invalidate'
func (*UInt64Cache_Invalidate_Call) Return ¶ added in v2.0.1
func (_c *UInt64Cache_Invalidate_Call) Return(err error) *UInt64Cache_Invalidate_Call
func (*UInt64Cache_Invalidate_Call) Run ¶ added in v2.0.1
func (_c *UInt64Cache_Invalidate_Call) Run(run func(ctx context.Context, options ...store.InvalidateOption)) *UInt64Cache_Invalidate_Call
func (*UInt64Cache_Invalidate_Call) RunAndReturn ¶ added in v2.0.1
func (_c *UInt64Cache_Invalidate_Call) RunAndReturn(run func(ctx context.Context, options ...store.InvalidateOption) error) *UInt64Cache_Invalidate_Call
type UInt64Cache_Set_Call ¶ added in v2.0.1
UInt64Cache_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*UInt64Cache_Set_Call) Return ¶ added in v2.0.1
func (_c *UInt64Cache_Set_Call) Return(err error) *UInt64Cache_Set_Call
func (*UInt64Cache_Set_Call) Run ¶ added in v2.0.1
func (_c *UInt64Cache_Set_Call) Run(run func(ctx context.Context, key any, object uint64, options ...store.Option)) *UInt64Cache_Set_Call
func (*UInt64Cache_Set_Call) RunAndReturn ¶ added in v2.0.1
func (_c *UInt64Cache_Set_Call) RunAndReturn(run func(ctx context.Context, key any, object uint64, options ...store.Option) error) *UInt64Cache_Set_Call