Documentation ¶
Index ¶
- type SlackNotifier
- func (_m *SlackNotifier) EXPECT() *SlackNotifier_Expecter
- func (_m *SlackNotifier) Error(entry *cache.Entry, message string) error
- func (_m *SlackNotifier) KeyDeleted(entry *cache.Entry, id string) error
- func (_m *SlackNotifier) KeyDisabled(entry *cache.Entry, id string) error
- func (_m *SlackNotifier) KeyIssued(entry *cache.Entry, id string) error
- type SlackNotifier_Error_Call
- func (_c *SlackNotifier_Error_Call) Return(_a0 error) *SlackNotifier_Error_Call
- func (_c *SlackNotifier_Error_Call) Run(run func(entry *cache.Entry, message string)) *SlackNotifier_Error_Call
- func (_c *SlackNotifier_Error_Call) RunAndReturn(run func(*cache.Entry, string) error) *SlackNotifier_Error_Call
- type SlackNotifier_Expecter
- func (_e *SlackNotifier_Expecter) Error(entry interface{}, message interface{}) *SlackNotifier_Error_Call
- func (_e *SlackNotifier_Expecter) KeyDeleted(entry interface{}, id interface{}) *SlackNotifier_KeyDeleted_Call
- func (_e *SlackNotifier_Expecter) KeyDisabled(entry interface{}, id interface{}) *SlackNotifier_KeyDisabled_Call
- func (_e *SlackNotifier_Expecter) KeyIssued(entry interface{}, id interface{}) *SlackNotifier_KeyIssued_Call
- type SlackNotifier_KeyDeleted_Call
- func (_c *SlackNotifier_KeyDeleted_Call) Return(_a0 error) *SlackNotifier_KeyDeleted_Call
- func (_c *SlackNotifier_KeyDeleted_Call) Run(run func(entry *cache.Entry, id string)) *SlackNotifier_KeyDeleted_Call
- func (_c *SlackNotifier_KeyDeleted_Call) RunAndReturn(run func(*cache.Entry, string) error) *SlackNotifier_KeyDeleted_Call
- type SlackNotifier_KeyDisabled_Call
- func (_c *SlackNotifier_KeyDisabled_Call) Return(_a0 error) *SlackNotifier_KeyDisabled_Call
- func (_c *SlackNotifier_KeyDisabled_Call) Run(run func(entry *cache.Entry, id string)) *SlackNotifier_KeyDisabled_Call
- func (_c *SlackNotifier_KeyDisabled_Call) RunAndReturn(run func(*cache.Entry, string) error) *SlackNotifier_KeyDisabled_Call
- type SlackNotifier_KeyIssued_Call
- func (_c *SlackNotifier_KeyIssued_Call) Return(_a0 error) *SlackNotifier_KeyIssued_Call
- func (_c *SlackNotifier_KeyIssued_Call) Run(run func(entry *cache.Entry, id string)) *SlackNotifier_KeyIssued_Call
- func (_c *SlackNotifier_KeyIssued_Call) RunAndReturn(run func(*cache.Entry, string) error) *SlackNotifier_KeyIssued_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackNotifier ¶
SlackNotifier is an autogenerated mock type for the SlackNotifier type
func NewSlackNotifier ¶
func NewSlackNotifier(t mockConstructorTestingTNewSlackNotifier) *SlackNotifier
NewSlackNotifier creates a new instance of SlackNotifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SlackNotifier) EXPECT ¶
func (_m *SlackNotifier) EXPECT() *SlackNotifier_Expecter
func (*SlackNotifier) Error ¶
func (_m *SlackNotifier) Error(entry *cache.Entry, message string) error
Error provides a mock function with given fields: entry, message
func (*SlackNotifier) KeyDeleted ¶
func (_m *SlackNotifier) KeyDeleted(entry *cache.Entry, id string) error
KeyDeleted provides a mock function with given fields: entry, id
func (*SlackNotifier) KeyDisabled ¶
func (_m *SlackNotifier) KeyDisabled(entry *cache.Entry, id string) error
KeyDisabled provides a mock function with given fields: entry, id
type SlackNotifier_Error_Call ¶
SlackNotifier_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*SlackNotifier_Error_Call) Return ¶
func (_c *SlackNotifier_Error_Call) Return(_a0 error) *SlackNotifier_Error_Call
func (*SlackNotifier_Error_Call) Run ¶
func (_c *SlackNotifier_Error_Call) Run(run func(entry *cache.Entry, message string)) *SlackNotifier_Error_Call
func (*SlackNotifier_Error_Call) RunAndReturn ¶
func (_c *SlackNotifier_Error_Call) RunAndReturn(run func(*cache.Entry, string) error) *SlackNotifier_Error_Call
type SlackNotifier_Expecter ¶
type SlackNotifier_Expecter struct {
// contains filtered or unexported fields
}
func (*SlackNotifier_Expecter) Error ¶
func (_e *SlackNotifier_Expecter) Error(entry interface{}, message interface{}) *SlackNotifier_Error_Call
Error is a helper method to define mock.On call
- entry *cache.Entry
- message string
func (*SlackNotifier_Expecter) KeyDeleted ¶
func (_e *SlackNotifier_Expecter) KeyDeleted(entry interface{}, id interface{}) *SlackNotifier_KeyDeleted_Call
KeyDeleted is a helper method to define mock.On call
- entry *cache.Entry
- id string
func (*SlackNotifier_Expecter) KeyDisabled ¶
func (_e *SlackNotifier_Expecter) KeyDisabled(entry interface{}, id interface{}) *SlackNotifier_KeyDisabled_Call
KeyDisabled is a helper method to define mock.On call
- entry *cache.Entry
- id string
func (*SlackNotifier_Expecter) KeyIssued ¶
func (_e *SlackNotifier_Expecter) KeyIssued(entry interface{}, id interface{}) *SlackNotifier_KeyIssued_Call
KeyIssued is a helper method to define mock.On call
- entry *cache.Entry
- id string
type SlackNotifier_KeyDeleted_Call ¶
SlackNotifier_KeyDeleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KeyDeleted'
func (*SlackNotifier_KeyDeleted_Call) Return ¶
func (_c *SlackNotifier_KeyDeleted_Call) Return(_a0 error) *SlackNotifier_KeyDeleted_Call
func (*SlackNotifier_KeyDeleted_Call) Run ¶
func (_c *SlackNotifier_KeyDeleted_Call) Run(run func(entry *cache.Entry, id string)) *SlackNotifier_KeyDeleted_Call
func (*SlackNotifier_KeyDeleted_Call) RunAndReturn ¶
func (_c *SlackNotifier_KeyDeleted_Call) RunAndReturn(run func(*cache.Entry, string) error) *SlackNotifier_KeyDeleted_Call
type SlackNotifier_KeyDisabled_Call ¶
SlackNotifier_KeyDisabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KeyDisabled'
func (*SlackNotifier_KeyDisabled_Call) Return ¶
func (_c *SlackNotifier_KeyDisabled_Call) Return(_a0 error) *SlackNotifier_KeyDisabled_Call
func (*SlackNotifier_KeyDisabled_Call) Run ¶
func (_c *SlackNotifier_KeyDisabled_Call) Run(run func(entry *cache.Entry, id string)) *SlackNotifier_KeyDisabled_Call
func (*SlackNotifier_KeyDisabled_Call) RunAndReturn ¶
func (_c *SlackNotifier_KeyDisabled_Call) RunAndReturn(run func(*cache.Entry, string) error) *SlackNotifier_KeyDisabled_Call
type SlackNotifier_KeyIssued_Call ¶
SlackNotifier_KeyIssued_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KeyIssued'
func (*SlackNotifier_KeyIssued_Call) Return ¶
func (_c *SlackNotifier_KeyIssued_Call) Return(_a0 error) *SlackNotifier_KeyIssued_Call
func (*SlackNotifier_KeyIssued_Call) Run ¶
func (_c *SlackNotifier_KeyIssued_Call) Run(run func(entry *cache.Entry, id string)) *SlackNotifier_KeyIssued_Call
func (*SlackNotifier_KeyIssued_Call) RunAndReturn ¶
func (_c *SlackNotifier_KeyIssued_Call) RunAndReturn(run func(*cache.Entry, string) error) *SlackNotifier_KeyIssued_Call