Documentation ¶
Index ¶
- type FinalizerMock
- func (_m *FinalizerMock) ContinueOnError() bool
- func (_m *FinalizerMock) EXPECT() *FinalizerMock_Expecter
- func (_m *FinalizerMock) Execute(ctx heimdall.Context, sub *subject.Subject) error
- func (_m *FinalizerMock) ID() string
- func (_m *FinalizerMock) WithConfig(config map[string]interface{}) (finalizers.Finalizer, error)
- type FinalizerMock_ContinueOnError_Call
- func (_c *FinalizerMock_ContinueOnError_Call) Return(_a0 bool) *FinalizerMock_ContinueOnError_Call
- func (_c *FinalizerMock_ContinueOnError_Call) Run(run func()) *FinalizerMock_ContinueOnError_Call
- func (_c *FinalizerMock_ContinueOnError_Call) RunAndReturn(run func() bool) *FinalizerMock_ContinueOnError_Call
- type FinalizerMock_Execute_Call
- func (_c *FinalizerMock_Execute_Call) Return(_a0 error) *FinalizerMock_Execute_Call
- func (_c *FinalizerMock_Execute_Call) Run(run func(ctx heimdall.Context, sub *subject.Subject)) *FinalizerMock_Execute_Call
- func (_c *FinalizerMock_Execute_Call) RunAndReturn(run func(heimdall.Context, *subject.Subject) error) *FinalizerMock_Execute_Call
- type FinalizerMock_Expecter
- func (_e *FinalizerMock_Expecter) ContinueOnError() *FinalizerMock_ContinueOnError_Call
- func (_e *FinalizerMock_Expecter) Execute(ctx interface{}, sub interface{}) *FinalizerMock_Execute_Call
- func (_e *FinalizerMock_Expecter) ID() *FinalizerMock_ID_Call
- func (_e *FinalizerMock_Expecter) WithConfig(config interface{}) *FinalizerMock_WithConfig_Call
- type FinalizerMock_ID_Call
- type FinalizerMock_WithConfig_Call
- func (_c *FinalizerMock_WithConfig_Call) Return(_a0 finalizers.Finalizer, _a1 error) *FinalizerMock_WithConfig_Call
- func (_c *FinalizerMock_WithConfig_Call) Run(run func(config map[string]interface{})) *FinalizerMock_WithConfig_Call
- func (_c *FinalizerMock_WithConfig_Call) RunAndReturn(run func(map[string]interface{}) (finalizers.Finalizer, error)) *FinalizerMock_WithConfig_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FinalizerMock ¶
FinalizerMock is an autogenerated mock type for the Finalizer type
func NewFinalizerMock ¶
func NewFinalizerMock(t mockConstructorTestingTNewFinalizerMock) *FinalizerMock
NewFinalizerMock creates a new instance of FinalizerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FinalizerMock) ContinueOnError ¶
func (_m *FinalizerMock) ContinueOnError() bool
ContinueOnError provides a mock function with given fields:
func (*FinalizerMock) EXPECT ¶
func (_m *FinalizerMock) EXPECT() *FinalizerMock_Expecter
func (*FinalizerMock) ID ¶
func (_m *FinalizerMock) ID() string
ID provides a mock function with given fields:
func (*FinalizerMock) WithConfig ¶
func (_m *FinalizerMock) WithConfig(config map[string]interface{}) (finalizers.Finalizer, error)
WithConfig provides a mock function with given fields: config
type FinalizerMock_ContinueOnError_Call ¶
FinalizerMock_ContinueOnError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContinueOnError'
func (*FinalizerMock_ContinueOnError_Call) Return ¶
func (_c *FinalizerMock_ContinueOnError_Call) Return(_a0 bool) *FinalizerMock_ContinueOnError_Call
func (*FinalizerMock_ContinueOnError_Call) Run ¶
func (_c *FinalizerMock_ContinueOnError_Call) Run(run func()) *FinalizerMock_ContinueOnError_Call
func (*FinalizerMock_ContinueOnError_Call) RunAndReturn ¶
func (_c *FinalizerMock_ContinueOnError_Call) RunAndReturn(run func() bool) *FinalizerMock_ContinueOnError_Call
type FinalizerMock_Execute_Call ¶
FinalizerMock_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*FinalizerMock_Execute_Call) Return ¶
func (_c *FinalizerMock_Execute_Call) Return(_a0 error) *FinalizerMock_Execute_Call
func (*FinalizerMock_Execute_Call) Run ¶
func (_c *FinalizerMock_Execute_Call) Run(run func(ctx heimdall.Context, sub *subject.Subject)) *FinalizerMock_Execute_Call
func (*FinalizerMock_Execute_Call) RunAndReturn ¶
func (_c *FinalizerMock_Execute_Call) RunAndReturn(run func(heimdall.Context, *subject.Subject) error) *FinalizerMock_Execute_Call
type FinalizerMock_Expecter ¶
type FinalizerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*FinalizerMock_Expecter) ContinueOnError ¶
func (_e *FinalizerMock_Expecter) ContinueOnError() *FinalizerMock_ContinueOnError_Call
ContinueOnError is a helper method to define mock.On call
func (*FinalizerMock_Expecter) Execute ¶
func (_e *FinalizerMock_Expecter) Execute(ctx interface{}, sub interface{}) *FinalizerMock_Execute_Call
Execute is a helper method to define mock.On call
- ctx heimdall.Context
- sub *subject.Subject
func (*FinalizerMock_Expecter) ID ¶
func (_e *FinalizerMock_Expecter) ID() *FinalizerMock_ID_Call
ID is a helper method to define mock.On call
func (*FinalizerMock_Expecter) WithConfig ¶
func (_e *FinalizerMock_Expecter) WithConfig(config interface{}) *FinalizerMock_WithConfig_Call
WithConfig is a helper method to define mock.On call
- config map[string]interface{}
type FinalizerMock_ID_Call ¶
FinalizerMock_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*FinalizerMock_ID_Call) Return ¶
func (_c *FinalizerMock_ID_Call) Return(_a0 string) *FinalizerMock_ID_Call
func (*FinalizerMock_ID_Call) Run ¶
func (_c *FinalizerMock_ID_Call) Run(run func()) *FinalizerMock_ID_Call
func (*FinalizerMock_ID_Call) RunAndReturn ¶
func (_c *FinalizerMock_ID_Call) RunAndReturn(run func() string) *FinalizerMock_ID_Call
type FinalizerMock_WithConfig_Call ¶
FinalizerMock_WithConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithConfig'
func (*FinalizerMock_WithConfig_Call) Return ¶
func (_c *FinalizerMock_WithConfig_Call) Return(_a0 finalizers.Finalizer, _a1 error) *FinalizerMock_WithConfig_Call
func (*FinalizerMock_WithConfig_Call) Run ¶
func (_c *FinalizerMock_WithConfig_Call) Run(run func(config map[string]interface{})) *FinalizerMock_WithConfig_Call
func (*FinalizerMock_WithConfig_Call) RunAndReturn ¶
func (_c *FinalizerMock_WithConfig_Call) RunAndReturn(run func(map[string]interface{}) (finalizers.Finalizer, error)) *FinalizerMock_WithConfig_Call