Documentation ¶
Index ¶
- type PodMutator
- func (_m *PodMutator) EXPECT() *PodMutator_Expecter
- func (_m *PodMutator) Enabled(request *webhook.BaseRequest) bool
- func (_m *PodMutator) Injected(request *webhook.BaseRequest) bool
- func (_m *PodMutator) Mutate(ctx context.Context, request *webhook.MutationRequest) error
- func (_m *PodMutator) Reinvoke(request *webhook.ReinvocationRequest) bool
- type PodMutator_Enabled_Call
- type PodMutator_Expecter
- func (_e *PodMutator_Expecter) Enabled(request interface{}) *PodMutator_Enabled_Call
- func (_e *PodMutator_Expecter) Injected(request interface{}) *PodMutator_Injected_Call
- func (_e *PodMutator_Expecter) Mutate(ctx interface{}, request interface{}) *PodMutator_Mutate_Call
- func (_e *PodMutator_Expecter) Reinvoke(request interface{}) *PodMutator_Reinvoke_Call
- type PodMutator_Injected_Call
- type PodMutator_Mutate_Call
- func (_c *PodMutator_Mutate_Call) Return(_a0 error) *PodMutator_Mutate_Call
- func (_c *PodMutator_Mutate_Call) Run(run func(ctx context.Context, request *webhook.MutationRequest)) *PodMutator_Mutate_Call
- func (_c *PodMutator_Mutate_Call) RunAndReturn(run func(context.Context, *webhook.MutationRequest) error) *PodMutator_Mutate_Call
- type PodMutator_Reinvoke_Call
- func (_c *PodMutator_Reinvoke_Call) Return(_a0 bool) *PodMutator_Reinvoke_Call
- func (_c *PodMutator_Reinvoke_Call) Run(run func(request *webhook.ReinvocationRequest)) *PodMutator_Reinvoke_Call
- func (_c *PodMutator_Reinvoke_Call) RunAndReturn(run func(*webhook.ReinvocationRequest) bool) *PodMutator_Reinvoke_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodMutator ¶
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 ¶
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 (_c *PodMutator_Enabled_Call) Return(_a0 bool) *PodMutator_Enabled_Call
func (*PodMutator_Enabled_Call) Run ¶
func (_c *PodMutator_Enabled_Call) Run(run func(request *webhook.BaseRequest)) *PodMutator_Enabled_Call
func (*PodMutator_Enabled_Call) RunAndReturn ¶
func (_c *PodMutator_Enabled_Call) RunAndReturn(run func(*webhook.BaseRequest) bool) *PodMutator_Enabled_Call
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 ¶
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 (_c *PodMutator_Injected_Call) Return(_a0 bool) *PodMutator_Injected_Call
func (*PodMutator_Injected_Call) Run ¶
func (_c *PodMutator_Injected_Call) Run(run func(request *webhook.BaseRequest)) *PodMutator_Injected_Call
func (*PodMutator_Injected_Call) RunAndReturn ¶
func (_c *PodMutator_Injected_Call) RunAndReturn(run func(*webhook.BaseRequest) bool) *PodMutator_Injected_Call
type PodMutator_Mutate_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 (_c *PodMutator_Mutate_Call) Return(_a0 error) *PodMutator_Mutate_Call
func (*PodMutator_Mutate_Call) Run ¶
func (_c *PodMutator_Mutate_Call) Run(run func(ctx context.Context, request *webhook.MutationRequest)) *PodMutator_Mutate_Call
func (*PodMutator_Mutate_Call) RunAndReturn ¶
func (_c *PodMutator_Mutate_Call) RunAndReturn(run func(context.Context, *webhook.MutationRequest) error) *PodMutator_Mutate_Call
type PodMutator_Reinvoke_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 (_c *PodMutator_Reinvoke_Call) Return(_a0 bool) *PodMutator_Reinvoke_Call
func (*PodMutator_Reinvoke_Call) Run ¶
func (_c *PodMutator_Reinvoke_Call) Run(run func(request *webhook.ReinvocationRequest)) *PodMutator_Reinvoke_Call
func (*PodMutator_Reinvoke_Call) RunAndReturn ¶
func (_c *PodMutator_Reinvoke_Call) RunAndReturn(run func(*webhook.ReinvocationRequest) bool) *PodMutator_Reinvoke_Call