Documentation
¶
Index ¶
- type Controller
- func (_m *Controller) EXPECT() *Controller_Expecter
- func (_m *Controller) GetLogger() logr.Logger
- func (_m *Controller) Reconcile(_a0 context.Context, _a1 reconcile.Request) (reconcile.Result, error)
- func (_m *Controller) Start(ctx context.Context) error
- func (_m *Controller) Watch(src source.Source, eventhandler handler.EventHandler, ...) error
- type Controller_Expecter
- func (_e *Controller_Expecter) GetLogger() *Controller_GetLogger_Call
- func (_e *Controller_Expecter) Reconcile(_a0 interface{}, _a1 interface{}) *Controller_Reconcile_Call
- func (_e *Controller_Expecter) Start(ctx interface{}) *Controller_Start_Call
- func (_e *Controller_Expecter) Watch(src interface{}, eventhandler interface{}, predicates ...interface{}) *Controller_Watch_Call
- type Controller_GetLogger_Call
- type Controller_Reconcile_Call
- func (_c *Controller_Reconcile_Call) Return(_a0 reconcile.Result, _a1 error) *Controller_Reconcile_Call
- func (_c *Controller_Reconcile_Call) Run(run func(_a0 context.Context, _a1 reconcile.Request)) *Controller_Reconcile_Call
- func (_c *Controller_Reconcile_Call) RunAndReturn(run func(context.Context, reconcile.Request) (reconcile.Result, error)) *Controller_Reconcile_Call
- type Controller_Start_Call
- type Controller_Watch_Call
- func (_c *Controller_Watch_Call) Return(_a0 error) *Controller_Watch_Call
- func (_c *Controller_Watch_Call) Run(run func(src source.Source, eventhandler handler.EventHandler, ...)) *Controller_Watch_Call
- func (_c *Controller_Watch_Call) RunAndReturn(run func(source.Source, handler.EventHandler, ...predicate.Predicate) error) *Controller_Watch_Call
- type Watcher
- type Watcher_Expecter
- type Watcher_GetEventsChannel_Call
- func (_c *Watcher_GetEventsChannel_Call) Return(_a0 <-chan event.TypedGenericEvent[client.Object]) *Watcher_GetEventsChannel_Call
- func (_c *Watcher_GetEventsChannel_Call) Run(run func()) *Watcher_GetEventsChannel_Call
- func (_c *Watcher_GetEventsChannel_Call) RunAndReturn(run func() <-chan event.TypedGenericEvent[client.Object]) *Watcher_GetEventsChannel_Call
- type Watcher_IsStarted_Call
- type Watcher_Start_Call
- type Watcher_Stop_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller is an autogenerated mock type for the Controller type
func NewController ¶
func NewController(t interface { mock.TestingT Cleanup(func()) }) *Controller
NewController creates a new instance of Controller. 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 (*Controller) EXPECT ¶
func (_m *Controller) EXPECT() *Controller_Expecter
func (*Controller) GetLogger ¶
func (_m *Controller) GetLogger() logr.Logger
GetLogger provides a mock function with given fields:
func (*Controller) Reconcile ¶
func (_m *Controller) Reconcile(_a0 context.Context, _a1 reconcile.Request) (reconcile.Result, error)
Reconcile provides a mock function with given fields: _a0, _a1
func (*Controller) Start ¶
func (_m *Controller) Start(ctx context.Context) error
Start provides a mock function with given fields: ctx
func (*Controller) Watch ¶
func (_m *Controller) Watch(src source.Source, eventhandler handler.EventHandler, predicates ...predicate.Predicate) error
Watch provides a mock function with given fields: src, eventhandler, predicates
type Controller_Expecter ¶
type Controller_Expecter struct {
// contains filtered or unexported fields
}
func (*Controller_Expecter) GetLogger ¶
func (_e *Controller_Expecter) GetLogger() *Controller_GetLogger_Call
GetLogger is a helper method to define mock.On call
func (*Controller_Expecter) Reconcile ¶
func (_e *Controller_Expecter) Reconcile(_a0 interface{}, _a1 interface{}) *Controller_Reconcile_Call
Reconcile is a helper method to define mock.On call
- _a0 context.Context
- _a1 reconcile.Request
func (*Controller_Expecter) Start ¶
func (_e *Controller_Expecter) Start(ctx interface{}) *Controller_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*Controller_Expecter) Watch ¶
func (_e *Controller_Expecter) Watch(src interface{}, eventhandler interface{}, predicates ...interface{}) *Controller_Watch_Call
Watch is a helper method to define mock.On call
- src source.Source
- eventhandler handler.EventHandler
- predicates ...predicate.Predicate
type Controller_GetLogger_Call ¶
Controller_GetLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogger'
func (*Controller_GetLogger_Call) Return ¶
func (_c *Controller_GetLogger_Call) Return(_a0 logr.Logger) *Controller_GetLogger_Call
func (*Controller_GetLogger_Call) Run ¶
func (_c *Controller_GetLogger_Call) Run(run func()) *Controller_GetLogger_Call
func (*Controller_GetLogger_Call) RunAndReturn ¶
func (_c *Controller_GetLogger_Call) RunAndReturn(run func() logr.Logger) *Controller_GetLogger_Call
type Controller_Reconcile_Call ¶
Controller_Reconcile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reconcile'
func (*Controller_Reconcile_Call) Return ¶
func (_c *Controller_Reconcile_Call) Return(_a0 reconcile.Result, _a1 error) *Controller_Reconcile_Call
func (*Controller_Reconcile_Call) Run ¶
func (_c *Controller_Reconcile_Call) Run(run func(_a0 context.Context, _a1 reconcile.Request)) *Controller_Reconcile_Call
func (*Controller_Reconcile_Call) RunAndReturn ¶
func (_c *Controller_Reconcile_Call) RunAndReturn(run func(context.Context, reconcile.Request) (reconcile.Result, error)) *Controller_Reconcile_Call
type Controller_Start_Call ¶
Controller_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Controller_Start_Call) Return ¶
func (_c *Controller_Start_Call) Return(_a0 error) *Controller_Start_Call
func (*Controller_Start_Call) Run ¶
func (_c *Controller_Start_Call) Run(run func(ctx context.Context)) *Controller_Start_Call
func (*Controller_Start_Call) RunAndReturn ¶
func (_c *Controller_Start_Call) RunAndReturn(run func(context.Context) error) *Controller_Start_Call
type Controller_Watch_Call ¶
Controller_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*Controller_Watch_Call) Return ¶
func (_c *Controller_Watch_Call) Return(_a0 error) *Controller_Watch_Call
func (*Controller_Watch_Call) Run ¶
func (_c *Controller_Watch_Call) Run(run func(src source.Source, eventhandler handler.EventHandler, predicates ...predicate.Predicate)) *Controller_Watch_Call
func (*Controller_Watch_Call) RunAndReturn ¶
func (_c *Controller_Watch_Call) RunAndReturn(run func(source.Source, handler.EventHandler, ...predicate.Predicate) error) *Controller_Watch_Call
type Watcher ¶
Watcher is an autogenerated mock type for the Watcher type
func NewWatcher ¶
NewWatcher creates a new instance of Watcher. 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 (*Watcher) EXPECT ¶
func (_m *Watcher) EXPECT() *Watcher_Expecter
func (*Watcher) GetEventsChannel ¶
func (_m *Watcher) GetEventsChannel() <-chan event.TypedGenericEvent[client.Object]
GetEventsChannel provides a mock function with no fields
type Watcher_Expecter ¶
type Watcher_Expecter struct {
// contains filtered or unexported fields
}
func (*Watcher_Expecter) GetEventsChannel ¶
func (_e *Watcher_Expecter) GetEventsChannel() *Watcher_GetEventsChannel_Call
GetEventsChannel is a helper method to define mock.On call
func (*Watcher_Expecter) IsStarted ¶
func (_e *Watcher_Expecter) IsStarted() *Watcher_IsStarted_Call
IsStarted is a helper method to define mock.On call
func (*Watcher_Expecter) Start ¶
func (_e *Watcher_Expecter) Start() *Watcher_Start_Call
Start is a helper method to define mock.On call
func (*Watcher_Expecter) Stop ¶
func (_e *Watcher_Expecter) Stop() *Watcher_Stop_Call
Stop is a helper method to define mock.On call
type Watcher_GetEventsChannel_Call ¶
Watcher_GetEventsChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEventsChannel'
func (*Watcher_GetEventsChannel_Call) Return ¶
func (_c *Watcher_GetEventsChannel_Call) Return(_a0 <-chan event.TypedGenericEvent[client.Object]) *Watcher_GetEventsChannel_Call
func (*Watcher_GetEventsChannel_Call) Run ¶
func (_c *Watcher_GetEventsChannel_Call) Run(run func()) *Watcher_GetEventsChannel_Call
func (*Watcher_GetEventsChannel_Call) RunAndReturn ¶
func (_c *Watcher_GetEventsChannel_Call) RunAndReturn(run func() <-chan event.TypedGenericEvent[client.Object]) *Watcher_GetEventsChannel_Call
type Watcher_IsStarted_Call ¶
Watcher_IsStarted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsStarted'
func (*Watcher_IsStarted_Call) Return ¶
func (_c *Watcher_IsStarted_Call) Return(_a0 bool) *Watcher_IsStarted_Call
func (*Watcher_IsStarted_Call) Run ¶
func (_c *Watcher_IsStarted_Call) Run(run func()) *Watcher_IsStarted_Call
func (*Watcher_IsStarted_Call) RunAndReturn ¶
func (_c *Watcher_IsStarted_Call) RunAndReturn(run func() bool) *Watcher_IsStarted_Call
type Watcher_Start_Call ¶
Watcher_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Watcher_Start_Call) Return ¶
func (_c *Watcher_Start_Call) Return() *Watcher_Start_Call
func (*Watcher_Start_Call) Run ¶
func (_c *Watcher_Start_Call) Run(run func()) *Watcher_Start_Call
func (*Watcher_Start_Call) RunAndReturn ¶
func (_c *Watcher_Start_Call) RunAndReturn(run func()) *Watcher_Start_Call
type Watcher_Stop_Call ¶
Watcher_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*Watcher_Stop_Call) Return ¶
func (_c *Watcher_Stop_Call) Return() *Watcher_Stop_Call
func (*Watcher_Stop_Call) Run ¶
func (_c *Watcher_Stop_Call) Run(run func()) *Watcher_Stop_Call
func (*Watcher_Stop_Call) RunAndReturn ¶
func (_c *Watcher_Stop_Call) RunAndReturn(run func()) *Watcher_Stop_Call