Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockInstrumenter
- func (m *MockInstrumenter) Cleanup(ctx *context.Context, req reconcile.Request)
- func (m *MockInstrumenter) EXPECT() *MockInstrumenterMockRecorder
- func (m *MockInstrumenter) GetContextForEvent(event any) *context.Context
- func (m *MockInstrumenter) GetContextForRequest(req reconcile.Request) (*context.Context, bool)
- func (m *MockInstrumenter) InstrumentRequestHandler(arg0 handler.TypedEventHandler[client.Object, reconcile.Request]) handler.TypedEventHandler[client.Object, reconcile.Request]
- func (m *MockInstrumenter) NewLogger(ctx context.Context) logr.Logger
- func (m *MockInstrumenter) NewQueue(mgr controllerruntime.Manager) ...
- func (m *MockInstrumenter) StartSpan(globalCtx *context.Context, localCtx context.Context, spanName string, ...) (context.Context, trace.Span)
- type MockInstrumenterMockRecorder
- func (mr *MockInstrumenterMockRecorder) Cleanup(ctx, req any) *gomock.Call
- func (mr *MockInstrumenterMockRecorder) GetContextForEvent(event any) *gomock.Call
- func (mr *MockInstrumenterMockRecorder) GetContextForRequest(req any) *gomock.Call
- func (mr *MockInstrumenterMockRecorder) InstrumentRequestHandler(arg0 any) *gomock.Call
- func (mr *MockInstrumenterMockRecorder) NewLogger(ctx any) *gomock.Call
- func (mr *MockInstrumenterMockRecorder) NewQueue(mgr any) *gomock.Call
- func (mr *MockInstrumenterMockRecorder) StartSpan(globalCtx, localCtx, spanName any, opts ...any) *gomock.Call
- type MockTypedController
- func (m *MockTypedController[request]) EXPECT() *MockTypedControllerMockRecorder[request]
- func (m *MockTypedController[request]) GetLogger() logr.Logger
- func (m *MockTypedController[request]) Reconcile(arg0 context.Context, arg1 request) (reconcile.Result, error)
- func (m *MockTypedController[request]) Start(ctx context.Context) error
- func (m *MockTypedController[request]) Watch(src source.TypedSource[request]) error
- type MockTypedControllerMockRecorder
- func (mr *MockTypedControllerMockRecorder[request]) GetLogger() *gomock.Call
- func (mr *MockTypedControllerMockRecorder[request]) Reconcile(arg0, arg1 any) *gomock.Call
- func (mr *MockTypedControllerMockRecorder[request]) Start(ctx any) *gomock.Call
- func (mr *MockTypedControllerMockRecorder[request]) Watch(src any) *gomock.Call
- type MockTypedReconciler
- type MockTypedReconcilerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInstrumenter ¶
type MockInstrumenter struct {
// contains filtered or unexported fields
}
MockInstrumenter is a mock of Instrumenter interface.
func NewMockInstrumenter ¶
func NewMockInstrumenter(ctrl *gomock.Controller) *MockInstrumenter
NewMockInstrumenter creates a new mock instance.
func (*MockInstrumenter) Cleanup ¶
func (m *MockInstrumenter) Cleanup(ctx *context.Context, req reconcile.Request)
Cleanup mocks base method.
func (*MockInstrumenter) EXPECT ¶
func (m *MockInstrumenter) EXPECT() *MockInstrumenterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstrumenter) GetContextForEvent ¶
func (m *MockInstrumenter) GetContextForEvent(event any) *context.Context
GetContextForEvent mocks base method.
func (*MockInstrumenter) GetContextForRequest ¶
GetContextForRequest mocks base method.
func (*MockInstrumenter) InstrumentRequestHandler ¶
func (m *MockInstrumenter) InstrumentRequestHandler(arg0 handler.TypedEventHandler[client.Object, reconcile.Request]) handler.TypedEventHandler[client.Object, reconcile.Request]
InstrumentRequestHandler mocks base method.
func (*MockInstrumenter) NewLogger ¶
func (m *MockInstrumenter) NewLogger(ctx context.Context) logr.Logger
NewLogger mocks base method.
func (*MockInstrumenter) NewQueue ¶
func (m *MockInstrumenter) NewQueue(mgr controllerruntime.Manager) func(string, workqueue.TypedRateLimiter[reconcile.Request]) workqueue.TypedRateLimitingInterface[reconcile.Request]
NewQueue mocks base method.
type MockInstrumenterMockRecorder ¶
type MockInstrumenterMockRecorder struct {
// contains filtered or unexported fields
}
MockInstrumenterMockRecorder is the mock recorder for MockInstrumenter.
func (*MockInstrumenterMockRecorder) Cleanup ¶
func (mr *MockInstrumenterMockRecorder) Cleanup(ctx, req any) *gomock.Call
Cleanup indicates an expected call of Cleanup.
func (*MockInstrumenterMockRecorder) GetContextForEvent ¶
func (mr *MockInstrumenterMockRecorder) GetContextForEvent(event any) *gomock.Call
GetContextForEvent indicates an expected call of GetContextForEvent.
func (*MockInstrumenterMockRecorder) GetContextForRequest ¶
func (mr *MockInstrumenterMockRecorder) GetContextForRequest(req any) *gomock.Call
GetContextForRequest indicates an expected call of GetContextForRequest.
func (*MockInstrumenterMockRecorder) InstrumentRequestHandler ¶
func (mr *MockInstrumenterMockRecorder) InstrumentRequestHandler(arg0 any) *gomock.Call
InstrumentRequestHandler indicates an expected call of InstrumentRequestHandler.
func (*MockInstrumenterMockRecorder) NewLogger ¶
func (mr *MockInstrumenterMockRecorder) NewLogger(ctx any) *gomock.Call
NewLogger indicates an expected call of NewLogger.
type MockTypedController ¶
type MockTypedController[request comparable] struct { // contains filtered or unexported fields }
MockTypedController is a mock of TypedController interface.
func NewMockTypedController ¶
func NewMockTypedController[request comparable](ctrl *gomock.Controller) *MockTypedController[request]
NewMockTypedController creates a new mock instance.
func (*MockTypedController[request]) EXPECT ¶
func (m *MockTypedController[request]) EXPECT() *MockTypedControllerMockRecorder[request]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTypedController[request]) GetLogger ¶
func (m *MockTypedController[request]) GetLogger() logr.Logger
GetLogger mocks base method.
func (*MockTypedController[request]) Reconcile ¶
func (m *MockTypedController[request]) Reconcile(arg0 context.Context, arg1 request) (reconcile.Result, error)
Reconcile mocks base method.
func (*MockTypedController[request]) Start ¶
func (m *MockTypedController[request]) Start(ctx context.Context) error
Start mocks base method.
func (*MockTypedController[request]) Watch ¶
func (m *MockTypedController[request]) Watch(src source.TypedSource[request]) error
Watch mocks base method.
type MockTypedControllerMockRecorder ¶
type MockTypedControllerMockRecorder[request comparable] struct { // contains filtered or unexported fields }
MockTypedControllerMockRecorder is the mock recorder for MockTypedController.
func (*MockTypedControllerMockRecorder[request]) GetLogger ¶
func (mr *MockTypedControllerMockRecorder[request]) GetLogger() *gomock.Call
GetLogger indicates an expected call of GetLogger.
func (*MockTypedControllerMockRecorder[request]) Reconcile ¶
func (mr *MockTypedControllerMockRecorder[request]) Reconcile(arg0, arg1 any) *gomock.Call
Reconcile indicates an expected call of Reconcile.
type MockTypedReconciler ¶
type MockTypedReconciler[request comparable] struct { // contains filtered or unexported fields }
MockTypedReconciler is a mock of TypedReconciler interface.
func NewMockTypedReconciler ¶
func NewMockTypedReconciler[request comparable](ctrl *gomock.Controller) *MockTypedReconciler[request]
NewMockTypedReconciler creates a new mock instance.
func (*MockTypedReconciler[request]) EXPECT ¶
func (m *MockTypedReconciler[request]) EXPECT() *MockTypedReconcilerMockRecorder[request]
EXPECT returns an object that allows the caller to indicate expected use.
type MockTypedReconcilerMockRecorder ¶
type MockTypedReconcilerMockRecorder[request comparable] struct { // contains filtered or unexported fields }
MockTypedReconcilerMockRecorder is the mock recorder for MockTypedReconciler.