mocks

package
v1.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodMutator

type PodMutator struct {
	mock.Mock
}

PodMutator is an autogenerated mock type for the PodMutator type

func NewPodMutator

func NewPodMutator(t interface {
	mock.TestingT
	Cleanup(func())
}) *PodMutator

NewPodMutator creates a new instance of PodMutator. 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 (*PodMutator) EXPECT

func (_m *PodMutator) EXPECT() *PodMutator_Expecter

func (*PodMutator) Enabled

func (_m *PodMutator) Enabled(request *webhook.BaseRequest) bool

Enabled provides a mock function with given fields: request

func (*PodMutator) Injected

func (_m *PodMutator) Injected(request *webhook.BaseRequest) bool

Injected provides a mock function with given fields: request

func (*PodMutator) Mutate

func (_m *PodMutator) Mutate(ctx context.Context, request *webhook.MutationRequest) error

Mutate provides a mock function with given fields: ctx, request

func (*PodMutator) Reinvoke

func (_m *PodMutator) Reinvoke(request *webhook.ReinvocationRequest) bool

Reinvoke provides a mock function with given fields: request

type PodMutator_Enabled_Call

type PodMutator_Enabled_Call struct {
	*mock.Call
}

PodMutator_Enabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enabled'

func (*PodMutator_Enabled_Call) Return

func (*PodMutator_Enabled_Call) Run

func (*PodMutator_Enabled_Call) RunAndReturn

type PodMutator_Expecter

type PodMutator_Expecter struct {
	// contains filtered or unexported fields
}

func (*PodMutator_Expecter) Enabled

func (_e *PodMutator_Expecter) Enabled(request interface{}) *PodMutator_Enabled_Call

Enabled is a helper method to define mock.On call

  • request *webhook.BaseRequest

func (*PodMutator_Expecter) Injected

func (_e *PodMutator_Expecter) Injected(request interface{}) *PodMutator_Injected_Call

Injected is a helper method to define mock.On call

  • request *webhook.BaseRequest

func (*PodMutator_Expecter) Mutate

func (_e *PodMutator_Expecter) Mutate(ctx interface{}, request interface{}) *PodMutator_Mutate_Call

Mutate is a helper method to define mock.On call

  • ctx context.Context
  • request *webhook.MutationRequest

func (*PodMutator_Expecter) Reinvoke

func (_e *PodMutator_Expecter) Reinvoke(request interface{}) *PodMutator_Reinvoke_Call

Reinvoke is a helper method to define mock.On call

  • request *webhook.ReinvocationRequest

type PodMutator_Injected_Call

type PodMutator_Injected_Call struct {
	*mock.Call
}

PodMutator_Injected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Injected'

func (*PodMutator_Injected_Call) Return

func (*PodMutator_Injected_Call) Run

func (*PodMutator_Injected_Call) RunAndReturn

type PodMutator_Mutate_Call

type PodMutator_Mutate_Call struct {
	*mock.Call
}

PodMutator_Mutate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Mutate'

func (*PodMutator_Mutate_Call) Return

func (*PodMutator_Mutate_Call) Run

func (*PodMutator_Mutate_Call) RunAndReturn

type PodMutator_Reinvoke_Call

type PodMutator_Reinvoke_Call struct {
	*mock.Call
}

PodMutator_Reinvoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reinvoke'

func (*PodMutator_Reinvoke_Call) Return

func (*PodMutator_Reinvoke_Call) Run

func (*PodMutator_Reinvoke_Call) RunAndReturn

Jump to

Keyboard shortcuts

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