mocks

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalSecretProvider

type GlobalSecretProvider struct {
	mock.Mock
}

GlobalSecretProvider is an autogenerated mock type for the GlobalSecretProvider type

func NewGlobalSecretProvider added in v1.15.1

func NewGlobalSecretProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *GlobalSecretProvider

NewGlobalSecretProvider creates a new instance of GlobalSecretProvider. 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 (*GlobalSecretProvider) EXPECT added in v1.15.1

func (*GlobalSecretProvider) GetForSecret

func (_m *GlobalSecretProvider) GetForSecret(ctx context.Context, secret *core.Secret) (string, error)

GetForSecret provides a mock function with given fields: ctx, secret

type GlobalSecretProvider_Expecter added in v1.15.1

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

func (*GlobalSecretProvider_Expecter) GetForSecret added in v1.15.1

func (_e *GlobalSecretProvider_Expecter) GetForSecret(ctx interface{}, secret interface{}) *GlobalSecretProvider_GetForSecret_Call

GetForSecret is a helper method to define mock.On call

  • ctx context.Context
  • secret *core.Secret

type GlobalSecretProvider_GetForSecret_Call added in v1.15.1

type GlobalSecretProvider_GetForSecret_Call struct {
	*mock.Call
}

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

func (*GlobalSecretProvider_GetForSecret_Call) Return added in v1.15.1

func (*GlobalSecretProvider_GetForSecret_Call) Run added in v1.15.1

func (*GlobalSecretProvider_GetForSecret_Call) RunAndReturn added in v1.15.1

type Mutator

type Mutator struct {
	mock.Mock
}

Mutator is an autogenerated mock type for the Mutator type

func NewMutator added in v1.15.1

func NewMutator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Mutator

NewMutator creates a new instance of Mutator. 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 (*Mutator) EXPECT added in v1.15.1

func (_m *Mutator) EXPECT() *Mutator_Expecter

func (*Mutator) ID

func (_m *Mutator) ID() string

ID provides a mock function with no fields

func (*Mutator) Mutate

func (_m *Mutator) Mutate(ctx context.Context, p *v1.Pod) (*v1.Pod, bool, error)

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

type Mutator_Expecter added in v1.15.1

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

func (*Mutator_Expecter) ID added in v1.15.1

ID is a helper method to define mock.On call

func (*Mutator_Expecter) Mutate added in v1.15.1

func (_e *Mutator_Expecter) Mutate(ctx interface{}, p interface{}) *Mutator_Mutate_Call

Mutate is a helper method to define mock.On call

  • ctx context.Context
  • p *v1.Pod

type Mutator_ID_Call added in v1.15.1

type Mutator_ID_Call struct {
	*mock.Call
}

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

func (*Mutator_ID_Call) Return added in v1.15.1

func (_c *Mutator_ID_Call) Return(_a0 string) *Mutator_ID_Call

func (*Mutator_ID_Call) Run added in v1.15.1

func (_c *Mutator_ID_Call) Run(run func()) *Mutator_ID_Call

func (*Mutator_ID_Call) RunAndReturn added in v1.15.1

func (_c *Mutator_ID_Call) RunAndReturn(run func() string) *Mutator_ID_Call

type Mutator_Mutate_Call added in v1.15.1

type Mutator_Mutate_Call struct {
	*mock.Call
}

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

func (*Mutator_Mutate_Call) Return added in v1.15.1

func (_c *Mutator_Mutate_Call) Return(newP *v1.Pod, changed bool, err error) *Mutator_Mutate_Call

func (*Mutator_Mutate_Call) Run added in v1.15.1

func (_c *Mutator_Mutate_Call) Run(run func(ctx context.Context, p *v1.Pod)) *Mutator_Mutate_Call

func (*Mutator_Mutate_Call) RunAndReturn added in v1.15.1

func (_c *Mutator_Mutate_Call) RunAndReturn(run func(context.Context, *v1.Pod) (*v1.Pod, bool, error)) *Mutator_Mutate_Call

type SecretsInjector

type SecretsInjector struct {
	mock.Mock
}

SecretsInjector is an autogenerated mock type for the SecretsInjector type

func NewSecretsInjector added in v1.15.1

func NewSecretsInjector(t interface {
	mock.TestingT
	Cleanup(func())
}) *SecretsInjector

NewSecretsInjector creates a new instance of SecretsInjector. 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 (*SecretsInjector) EXPECT added in v1.15.1

func (*SecretsInjector) Inject

func (_m *SecretsInjector) Inject(ctx context.Context, secrets *core.Secret, p *v1.Pod) (*v1.Pod, bool, error)

Inject provides a mock function with given fields: ctx, secrets, p

func (*SecretsInjector) Type

Type provides a mock function with no fields

type SecretsInjector_Expecter added in v1.15.1

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

func (*SecretsInjector_Expecter) Inject added in v1.15.1

func (_e *SecretsInjector_Expecter) Inject(ctx interface{}, secrets interface{}, p interface{}) *SecretsInjector_Inject_Call

Inject is a helper method to define mock.On call

  • ctx context.Context
  • secrets *core.Secret
  • p *v1.Pod

func (*SecretsInjector_Expecter) Type added in v1.15.1

Type is a helper method to define mock.On call

type SecretsInjector_Inject_Call added in v1.15.1

type SecretsInjector_Inject_Call struct {
	*mock.Call
}

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

func (*SecretsInjector_Inject_Call) Return added in v1.15.1

func (_c *SecretsInjector_Inject_Call) Return(newP *v1.Pod, injected bool, err error) *SecretsInjector_Inject_Call

func (*SecretsInjector_Inject_Call) Run added in v1.15.1

func (*SecretsInjector_Inject_Call) RunAndReturn added in v1.15.1

type SecretsInjector_Type_Call added in v1.15.1

type SecretsInjector_Type_Call struct {
	*mock.Call
}

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

func (*SecretsInjector_Type_Call) Return added in v1.15.1

func (*SecretsInjector_Type_Call) Run added in v1.15.1

func (*SecretsInjector_Type_Call) RunAndReturn added in v1.15.1

Jump to

Keyboard shortcuts

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