mocks

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2025 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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

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

func (m *MockInstrumenter) GetContextForRequest(req reconcile.Request) (*context.Context, bool)

GetContextForRequest mocks base method.

func (*MockInstrumenter) InstrumentRequestHandler

InstrumentRequestHandler mocks base method.

func (*MockInstrumenter) NewLogger

func (m *MockInstrumenter) NewLogger(ctx context.Context) logr.Logger

NewLogger mocks base method.

func (*MockInstrumenter) NewQueue

NewQueue mocks base method.

func (*MockInstrumenter) StartSpan

func (m *MockInstrumenter) StartSpan(globalCtx *context.Context, localCtx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

StartSpan 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.

func (*MockInstrumenterMockRecorder) NewQueue

func (mr *MockInstrumenterMockRecorder) NewQueue(mgr any) *gomock.Call

NewQueue indicates an expected call of NewQueue.

func (*MockInstrumenterMockRecorder) StartSpan

func (mr *MockInstrumenterMockRecorder) StartSpan(globalCtx, localCtx, spanName any, opts ...any) *gomock.Call

StartSpan indicates an expected call of StartSpan.

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.

func (*MockTypedControllerMockRecorder[request]) Start

func (mr *MockTypedControllerMockRecorder[request]) Start(ctx any) *gomock.Call

Start indicates an expected call of Start.

func (*MockTypedControllerMockRecorder[request]) Watch

func (mr *MockTypedControllerMockRecorder[request]) Watch(src any) *gomock.Call

Watch indicates an expected call of Watch.

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.

func (*MockTypedReconciler[request]) Reconcile

func (m *MockTypedReconciler[request]) Reconcile(arg0 context.Context, arg1 request) (reconcile.Result, error)

Reconcile mocks base method.

type MockTypedReconcilerMockRecorder

type MockTypedReconcilerMockRecorder[request comparable] struct {
	// contains filtered or unexported fields
}

MockTypedReconcilerMockRecorder is the mock recorder for MockTypedReconciler.

func (*MockTypedReconcilerMockRecorder[request]) Reconcile

func (mr *MockTypedReconcilerMockRecorder[request]) Reconcile(arg0, arg1 any) *gomock.Call

Reconcile indicates an expected call of Reconcile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL