mocks

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventsRecorder

type EventsRecorder struct {
	mock.Mock
}

EventsRecorder is an autogenerated mock type for the EventsRecorder type

func NewEventsRecorder added in v2.0.1

func NewEventsRecorder(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventsRecorder

NewEventsRecorder creates a new instance of EventsRecorder. 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 (*EventsRecorder) EXPECT added in v2.0.1

func (*EventsRecorder) RecordRaw

func (_mock *EventsRecorder) RecordRaw(ctx context.Context, ev core0.PhaseInfo) error

RecordRaw provides a mock function for the type EventsRecorder

type EventsRecorder_Expecter added in v2.0.1

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

func (*EventsRecorder_Expecter) RecordRaw added in v2.0.1

func (_e *EventsRecorder_Expecter) RecordRaw(ctx interface{}, ev interface{}) *EventsRecorder_RecordRaw_Call

RecordRaw is a helper method to define mock.On call

  • ctx context.Context
  • ev core0.PhaseInfo

type EventsRecorder_RecordRaw_Call added in v2.0.1

type EventsRecorder_RecordRaw_Call struct {
	*mock.Call
}

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

func (*EventsRecorder_RecordRaw_Call) Return added in v2.0.1

func (*EventsRecorder_RecordRaw_Call) Run added in v2.0.1

func (*EventsRecorder_RecordRaw_Call) RunAndReturn added in v2.0.1

type KubeClient

type KubeClient struct {
	mock.Mock
}

KubeClient is an autogenerated mock type for the KubeClient type

func NewKubeClient added in v2.0.1

func NewKubeClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *KubeClient

NewKubeClient creates a new instance of KubeClient. 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 (*KubeClient) EXPECT added in v2.0.1

func (_m *KubeClient) EXPECT() *KubeClient_Expecter

func (*KubeClient) GetCache

func (_mock *KubeClient) GetCache() cache.Cache

GetCache provides a mock function for the type KubeClient

func (*KubeClient) GetClient

func (_mock *KubeClient) GetClient() client.Client

GetClient provides a mock function for the type KubeClient

type KubeClient_Expecter added in v2.0.1

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

func (*KubeClient_Expecter) GetCache added in v2.0.1

GetCache is a helper method to define mock.On call

func (*KubeClient_Expecter) GetClient added in v2.0.1

GetClient is a helper method to define mock.On call

type KubeClient_GetCache_Call added in v2.0.1

type KubeClient_GetCache_Call struct {
	*mock.Call
}

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

func (*KubeClient_GetCache_Call) Return added in v2.0.1

func (*KubeClient_GetCache_Call) Run added in v2.0.1

func (*KubeClient_GetCache_Call) RunAndReturn added in v2.0.1

func (_c *KubeClient_GetCache_Call) RunAndReturn(run func() cache.Cache) *KubeClient_GetCache_Call

type KubeClient_GetClient_Call added in v2.0.1

type KubeClient_GetClient_Call struct {
	*mock.Call
}

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

func (*KubeClient_GetClient_Call) Return added in v2.0.1

func (*KubeClient_GetClient_Call) Run added in v2.0.1

func (*KubeClient_GetClient_Call) RunAndReturn added in v2.0.1

func (_c *KubeClient_GetClient_Call) RunAndReturn(run func() client.Client) *KubeClient_GetClient_Call

type Plugin

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func NewPlugin added in v2.0.1

func NewPlugin(t interface {
	mock.TestingT
	Cleanup(func())
}) *Plugin

NewPlugin creates a new instance of Plugin. 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 (*Plugin) Abort

func (_mock *Plugin) Abort(ctx context.Context, tCtx core0.TaskExecutionContext) error

Abort provides a mock function for the type Plugin

func (*Plugin) EXPECT added in v2.0.1

func (_m *Plugin) EXPECT() *Plugin_Expecter

func (*Plugin) Finalize

func (_mock *Plugin) Finalize(ctx context.Context, tCtx core0.TaskExecutionContext) error

Finalize provides a mock function for the type Plugin

func (*Plugin) GetID

func (_mock *Plugin) GetID() string

GetID provides a mock function for the type Plugin

func (*Plugin) GetProperties

func (_mock *Plugin) GetProperties() core0.PluginProperties

GetProperties provides a mock function for the type Plugin

func (*Plugin) Handle

func (_mock *Plugin) Handle(ctx context.Context, tCtx core0.TaskExecutionContext) (core0.Transition, error)

Handle provides a mock function for the type Plugin

type PluginStateReader

type PluginStateReader struct {
	mock.Mock
}

PluginStateReader is an autogenerated mock type for the PluginStateReader type

func NewPluginStateReader added in v2.0.1

func NewPluginStateReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *PluginStateReader

NewPluginStateReader creates a new instance of PluginStateReader. 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 (*PluginStateReader) EXPECT added in v2.0.1

func (*PluginStateReader) Get

func (_mock *PluginStateReader) Get(t interface{}) (uint8, error)

Get provides a mock function for the type PluginStateReader

func (*PluginStateReader) GetStateVersion

func (_mock *PluginStateReader) GetStateVersion() uint8

GetStateVersion provides a mock function for the type PluginStateReader

type PluginStateReader_Expecter added in v2.0.1

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

func (*PluginStateReader_Expecter) Get added in v2.0.1

Get is a helper method to define mock.On call

  • t interface{}

func (*PluginStateReader_Expecter) GetStateVersion added in v2.0.1

GetStateVersion is a helper method to define mock.On call

type PluginStateReader_GetStateVersion_Call added in v2.0.1

type PluginStateReader_GetStateVersion_Call struct {
	*mock.Call
}

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

func (*PluginStateReader_GetStateVersion_Call) Return added in v2.0.1

func (*PluginStateReader_GetStateVersion_Call) Run added in v2.0.1

func (*PluginStateReader_GetStateVersion_Call) RunAndReturn added in v2.0.1

type PluginStateReader_Get_Call added in v2.0.1

type PluginStateReader_Get_Call struct {
	*mock.Call
}

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

func (*PluginStateReader_Get_Call) Return added in v2.0.1

func (_c *PluginStateReader_Get_Call) Return(stateVersion uint8, err error) *PluginStateReader_Get_Call

func (*PluginStateReader_Get_Call) Run added in v2.0.1

func (_c *PluginStateReader_Get_Call) Run(run func(t interface{})) *PluginStateReader_Get_Call

func (*PluginStateReader_Get_Call) RunAndReturn added in v2.0.1

func (_c *PluginStateReader_Get_Call) RunAndReturn(run func(t interface{}) (uint8, error)) *PluginStateReader_Get_Call

type PluginStateWriter

type PluginStateWriter struct {
	mock.Mock
}

PluginStateWriter is an autogenerated mock type for the PluginStateWriter type

func NewPluginStateWriter added in v2.0.1

func NewPluginStateWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *PluginStateWriter

NewPluginStateWriter creates a new instance of PluginStateWriter. 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 (*PluginStateWriter) EXPECT added in v2.0.1

func (*PluginStateWriter) Put

func (_mock *PluginStateWriter) Put(stateVersion uint8, v interface{}) error

Put provides a mock function for the type PluginStateWriter

func (*PluginStateWriter) Reset

func (_mock *PluginStateWriter) Reset() error

Reset provides a mock function for the type PluginStateWriter

type PluginStateWriter_Expecter added in v2.0.1

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

func (*PluginStateWriter_Expecter) Put added in v2.0.1

func (_e *PluginStateWriter_Expecter) Put(stateVersion interface{}, v interface{}) *PluginStateWriter_Put_Call

Put is a helper method to define mock.On call

  • stateVersion uint8
  • v interface{}

func (*PluginStateWriter_Expecter) Reset added in v2.0.1

Reset is a helper method to define mock.On call

type PluginStateWriter_Put_Call added in v2.0.1

type PluginStateWriter_Put_Call struct {
	*mock.Call
}

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

func (*PluginStateWriter_Put_Call) Return added in v2.0.1

func (*PluginStateWriter_Put_Call) Run added in v2.0.1

func (_c *PluginStateWriter_Put_Call) Run(run func(stateVersion uint8, v interface{})) *PluginStateWriter_Put_Call

func (*PluginStateWriter_Put_Call) RunAndReturn added in v2.0.1

func (_c *PluginStateWriter_Put_Call) RunAndReturn(run func(stateVersion uint8, v interface{}) error) *PluginStateWriter_Put_Call

type PluginStateWriter_Reset_Call added in v2.0.1

type PluginStateWriter_Reset_Call struct {
	*mock.Call
}

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

func (*PluginStateWriter_Reset_Call) Return added in v2.0.1

func (*PluginStateWriter_Reset_Call) Run added in v2.0.1

func (*PluginStateWriter_Reset_Call) RunAndReturn added in v2.0.1

func (_c *PluginStateWriter_Reset_Call) RunAndReturn(run func() error) *PluginStateWriter_Reset_Call

type Plugin_Abort_Call added in v2.0.1

type Plugin_Abort_Call struct {
	*mock.Call
}

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

func (*Plugin_Abort_Call) Return added in v2.0.1

func (_c *Plugin_Abort_Call) Return(err error) *Plugin_Abort_Call

func (*Plugin_Abort_Call) Run added in v2.0.1

func (*Plugin_Abort_Call) RunAndReturn added in v2.0.1

func (_c *Plugin_Abort_Call) RunAndReturn(run func(ctx context.Context, tCtx core0.TaskExecutionContext) error) *Plugin_Abort_Call

type Plugin_Expecter added in v2.0.1

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

func (*Plugin_Expecter) Abort added in v2.0.1

func (_e *Plugin_Expecter) Abort(ctx interface{}, tCtx interface{}) *Plugin_Abort_Call

Abort is a helper method to define mock.On call

  • ctx context.Context
  • tCtx core0.TaskExecutionContext

func (*Plugin_Expecter) Finalize added in v2.0.1

func (_e *Plugin_Expecter) Finalize(ctx interface{}, tCtx interface{}) *Plugin_Finalize_Call

Finalize is a helper method to define mock.On call

  • ctx context.Context
  • tCtx core0.TaskExecutionContext

func (*Plugin_Expecter) GetID added in v2.0.1

func (_e *Plugin_Expecter) GetID() *Plugin_GetID_Call

GetID is a helper method to define mock.On call

func (*Plugin_Expecter) GetProperties added in v2.0.1

func (_e *Plugin_Expecter) GetProperties() *Plugin_GetProperties_Call

GetProperties is a helper method to define mock.On call

func (*Plugin_Expecter) Handle added in v2.0.1

func (_e *Plugin_Expecter) Handle(ctx interface{}, tCtx interface{}) *Plugin_Handle_Call

Handle is a helper method to define mock.On call

  • ctx context.Context
  • tCtx core0.TaskExecutionContext

type Plugin_Finalize_Call added in v2.0.1

type Plugin_Finalize_Call struct {
	*mock.Call
}

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

func (*Plugin_Finalize_Call) Return added in v2.0.1

func (*Plugin_Finalize_Call) Run added in v2.0.1

func (*Plugin_Finalize_Call) RunAndReturn added in v2.0.1

type Plugin_GetID_Call added in v2.0.1

type Plugin_GetID_Call struct {
	*mock.Call
}

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

func (*Plugin_GetID_Call) Return added in v2.0.1

func (*Plugin_GetID_Call) Run added in v2.0.1

func (_c *Plugin_GetID_Call) Run(run func()) *Plugin_GetID_Call

func (*Plugin_GetID_Call) RunAndReturn added in v2.0.1

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

type Plugin_GetProperties_Call added in v2.0.1

type Plugin_GetProperties_Call struct {
	*mock.Call
}

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

func (*Plugin_GetProperties_Call) Return added in v2.0.1

func (*Plugin_GetProperties_Call) Run added in v2.0.1

func (*Plugin_GetProperties_Call) RunAndReturn added in v2.0.1

type Plugin_Handle_Call added in v2.0.1

type Plugin_Handle_Call struct {
	*mock.Call
}

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

func (*Plugin_Handle_Call) Return added in v2.0.1

func (_c *Plugin_Handle_Call) Return(transition core0.Transition, err error) *Plugin_Handle_Call

func (*Plugin_Handle_Call) Run added in v2.0.1

func (*Plugin_Handle_Call) RunAndReturn added in v2.0.1

type ResourceManager

type ResourceManager struct {
	mock.Mock
}

ResourceManager is an autogenerated mock type for the ResourceManager type

func NewResourceManager added in v2.0.1

func NewResourceManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResourceManager

NewResourceManager creates a new instance of ResourceManager. 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 (*ResourceManager) AllocateResource

func (_mock *ResourceManager) AllocateResource(ctx context.Context, namespace core0.ResourceNamespace, allocationToken string, constraintsSpec core0.ResourceConstraintsSpec) (core0.AllocationStatus, error)

AllocateResource provides a mock function for the type ResourceManager

func (*ResourceManager) EXPECT added in v2.0.1

func (*ResourceManager) GetID

func (_mock *ResourceManager) GetID() string

GetID provides a mock function for the type ResourceManager

func (*ResourceManager) ReleaseResource

func (_mock *ResourceManager) ReleaseResource(ctx context.Context, namespace core0.ResourceNamespace, allocationToken string) error

ReleaseResource provides a mock function for the type ResourceManager

type ResourceManager_AllocateResource_Call added in v2.0.1

type ResourceManager_AllocateResource_Call struct {
	*mock.Call
}

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

func (*ResourceManager_AllocateResource_Call) Return added in v2.0.1

func (*ResourceManager_AllocateResource_Call) Run added in v2.0.1

func (*ResourceManager_AllocateResource_Call) RunAndReturn added in v2.0.1

type ResourceManager_Expecter added in v2.0.1

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

func (*ResourceManager_Expecter) AllocateResource added in v2.0.1

func (_e *ResourceManager_Expecter) AllocateResource(ctx interface{}, namespace interface{}, allocationToken interface{}, constraintsSpec interface{}) *ResourceManager_AllocateResource_Call

AllocateResource is a helper method to define mock.On call

  • ctx context.Context
  • namespace core0.ResourceNamespace
  • allocationToken string
  • constraintsSpec core0.ResourceConstraintsSpec

func (*ResourceManager_Expecter) GetID added in v2.0.1

GetID is a helper method to define mock.On call

func (*ResourceManager_Expecter) ReleaseResource added in v2.0.1

func (_e *ResourceManager_Expecter) ReleaseResource(ctx interface{}, namespace interface{}, allocationToken interface{}) *ResourceManager_ReleaseResource_Call

ReleaseResource is a helper method to define mock.On call

  • ctx context.Context
  • namespace core0.ResourceNamespace
  • allocationToken string

type ResourceManager_GetID_Call added in v2.0.1

type ResourceManager_GetID_Call struct {
	*mock.Call
}

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

func (*ResourceManager_GetID_Call) Return added in v2.0.1

func (*ResourceManager_GetID_Call) Run added in v2.0.1

func (*ResourceManager_GetID_Call) RunAndReturn added in v2.0.1

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

type ResourceManager_ReleaseResource_Call added in v2.0.1

type ResourceManager_ReleaseResource_Call struct {
	*mock.Call
}

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

func (*ResourceManager_ReleaseResource_Call) Return added in v2.0.1

func (*ResourceManager_ReleaseResource_Call) Run added in v2.0.1

func (*ResourceManager_ReleaseResource_Call) RunAndReturn added in v2.0.1

type ResourceRegistrar

type ResourceRegistrar struct {
	mock.Mock
}

ResourceRegistrar is an autogenerated mock type for the ResourceRegistrar type

func NewResourceRegistrar added in v2.0.1

func NewResourceRegistrar(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResourceRegistrar

NewResourceRegistrar creates a new instance of ResourceRegistrar. 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 (*ResourceRegistrar) EXPECT added in v2.0.1

func (*ResourceRegistrar) RegisterResourceQuota

func (_mock *ResourceRegistrar) RegisterResourceQuota(ctx context.Context, namespace core0.ResourceNamespace, quota int) error

RegisterResourceQuota provides a mock function for the type ResourceRegistrar

type ResourceRegistrar_Expecter added in v2.0.1

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

func (*ResourceRegistrar_Expecter) RegisterResourceQuota added in v2.0.1

func (_e *ResourceRegistrar_Expecter) RegisterResourceQuota(ctx interface{}, namespace interface{}, quota interface{}) *ResourceRegistrar_RegisterResourceQuota_Call

RegisterResourceQuota is a helper method to define mock.On call

  • ctx context.Context
  • namespace core0.ResourceNamespace
  • quota int

type ResourceRegistrar_RegisterResourceQuota_Call added in v2.0.1

type ResourceRegistrar_RegisterResourceQuota_Call struct {
	*mock.Call
}

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

func (*ResourceRegistrar_RegisterResourceQuota_Call) Return added in v2.0.1

func (*ResourceRegistrar_RegisterResourceQuota_Call) Run added in v2.0.1

func (*ResourceRegistrar_RegisterResourceQuota_Call) RunAndReturn added in v2.0.1

type SecretManager

type SecretManager struct {
	mock.Mock
}

SecretManager is an autogenerated mock type for the SecretManager type

func NewSecretManager added in v2.0.1

func NewSecretManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *SecretManager

NewSecretManager creates a new instance of SecretManager. 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 (*SecretManager) EXPECT added in v2.0.1

func (_m *SecretManager) EXPECT() *SecretManager_Expecter

func (*SecretManager) Get

func (_mock *SecretManager) Get(ctx context.Context, key string) (string, error)

Get provides a mock function for the type SecretManager

type SecretManager_Expecter added in v2.0.1

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

func (*SecretManager_Expecter) Get added in v2.0.1

func (_e *SecretManager_Expecter) Get(ctx interface{}, key interface{}) *SecretManager_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key string

type SecretManager_Get_Call added in v2.0.1

type SecretManager_Get_Call struct {
	*mock.Call
}

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

func (*SecretManager_Get_Call) Return added in v2.0.1

func (*SecretManager_Get_Call) Run added in v2.0.1

func (*SecretManager_Get_Call) RunAndReturn added in v2.0.1

func (_c *SecretManager_Get_Call) RunAndReturn(run func(ctx context.Context, key string) (string, error)) *SecretManager_Get_Call

type SetupContext

type SetupContext struct {
	mock.Mock
}

SetupContext is an autogenerated mock type for the SetupContext type

func NewSetupContext added in v2.0.1

func NewSetupContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *SetupContext

NewSetupContext creates a new instance of SetupContext. 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 (*SetupContext) EXPECT added in v2.0.1

func (_m *SetupContext) EXPECT() *SetupContext_Expecter

func (*SetupContext) EnqueueOwner

func (_mock *SetupContext) EnqueueOwner() core0.EnqueueOwner

EnqueueOwner provides a mock function for the type SetupContext

func (*SetupContext) IncludeEnqueueLabels

func (_mock *SetupContext) IncludeEnqueueLabels() []string

IncludeEnqueueLabels provides a mock function for the type SetupContext

func (*SetupContext) KubeClient

func (_mock *SetupContext) KubeClient() core0.KubeClient

KubeClient provides a mock function for the type SetupContext

func (*SetupContext) MetricsScope

func (_mock *SetupContext) MetricsScope() promutils.Scope

MetricsScope provides a mock function for the type SetupContext

func (*SetupContext) OwnerKind

func (_mock *SetupContext) OwnerKind() string

OwnerKind provides a mock function for the type SetupContext

func (*SetupContext) ResourceRegistrar

func (_mock *SetupContext) ResourceRegistrar() core0.ResourceRegistrar

ResourceRegistrar provides a mock function for the type SetupContext

func (*SetupContext) SecretManager

func (_mock *SetupContext) SecretManager() core0.SecretManager

SecretManager provides a mock function for the type SetupContext

type SetupContext_EnqueueOwner_Call added in v2.0.1

type SetupContext_EnqueueOwner_Call struct {
	*mock.Call
}

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

func (*SetupContext_EnqueueOwner_Call) Return added in v2.0.1

func (*SetupContext_EnqueueOwner_Call) Run added in v2.0.1

func (*SetupContext_EnqueueOwner_Call) RunAndReturn added in v2.0.1

type SetupContext_Expecter added in v2.0.1

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

func (*SetupContext_Expecter) EnqueueOwner added in v2.0.1

EnqueueOwner is a helper method to define mock.On call

func (*SetupContext_Expecter) IncludeEnqueueLabels added in v2.0.1

IncludeEnqueueLabels is a helper method to define mock.On call

func (*SetupContext_Expecter) KubeClient added in v2.0.1

KubeClient is a helper method to define mock.On call

func (*SetupContext_Expecter) MetricsScope added in v2.0.1

MetricsScope is a helper method to define mock.On call

func (*SetupContext_Expecter) OwnerKind added in v2.0.1

OwnerKind is a helper method to define mock.On call

func (*SetupContext_Expecter) ResourceRegistrar added in v2.0.1

ResourceRegistrar is a helper method to define mock.On call

func (*SetupContext_Expecter) SecretManager added in v2.0.1

SecretManager is a helper method to define mock.On call

type SetupContext_IncludeEnqueueLabels_Call added in v2.0.1

type SetupContext_IncludeEnqueueLabels_Call struct {
	*mock.Call
}

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

func (*SetupContext_IncludeEnqueueLabels_Call) Return added in v2.0.1

func (*SetupContext_IncludeEnqueueLabels_Call) Run added in v2.0.1

func (*SetupContext_IncludeEnqueueLabels_Call) RunAndReturn added in v2.0.1

type SetupContext_KubeClient_Call added in v2.0.1

type SetupContext_KubeClient_Call struct {
	*mock.Call
}

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

func (*SetupContext_KubeClient_Call) Return added in v2.0.1

func (*SetupContext_KubeClient_Call) Run added in v2.0.1

func (*SetupContext_KubeClient_Call) RunAndReturn added in v2.0.1

type SetupContext_MetricsScope_Call added in v2.0.1

type SetupContext_MetricsScope_Call struct {
	*mock.Call
}

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

func (*SetupContext_MetricsScope_Call) Return added in v2.0.1

func (*SetupContext_MetricsScope_Call) Run added in v2.0.1

func (*SetupContext_MetricsScope_Call) RunAndReturn added in v2.0.1

type SetupContext_OwnerKind_Call added in v2.0.1

type SetupContext_OwnerKind_Call struct {
	*mock.Call
}

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

func (*SetupContext_OwnerKind_Call) Return added in v2.0.1

func (*SetupContext_OwnerKind_Call) Run added in v2.0.1

func (*SetupContext_OwnerKind_Call) RunAndReturn added in v2.0.1

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

type SetupContext_ResourceRegistrar_Call added in v2.0.1

type SetupContext_ResourceRegistrar_Call struct {
	*mock.Call
}

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

func (*SetupContext_ResourceRegistrar_Call) Return added in v2.0.1

func (*SetupContext_ResourceRegistrar_Call) Run added in v2.0.1

func (*SetupContext_ResourceRegistrar_Call) RunAndReturn added in v2.0.1

type SetupContext_SecretManager_Call added in v2.0.1

type SetupContext_SecretManager_Call struct {
	*mock.Call
}

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

func (*SetupContext_SecretManager_Call) Return added in v2.0.1

func (*SetupContext_SecretManager_Call) Run added in v2.0.1

func (*SetupContext_SecretManager_Call) RunAndReturn added in v2.0.1

type TaskExecutionContext

type TaskExecutionContext struct {
	mock.Mock
}

TaskExecutionContext is an autogenerated mock type for the TaskExecutionContext type

func NewTaskExecutionContext added in v2.0.1

func NewTaskExecutionContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskExecutionContext

NewTaskExecutionContext creates a new instance of TaskExecutionContext. 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 (*TaskExecutionContext) Catalog

func (_mock *TaskExecutionContext) Catalog() catalog.AsyncClient

Catalog provides a mock function for the type TaskExecutionContext

func (*TaskExecutionContext) DataStore

func (_mock *TaskExecutionContext) DataStore() *storage.DataStore

DataStore provides a mock function for the type TaskExecutionContext

func (*TaskExecutionContext) EXPECT added in v2.0.1

func (*TaskExecutionContext) InputReader

func (_mock *TaskExecutionContext) InputReader() io.InputReader

InputReader provides a mock function for the type TaskExecutionContext

func (*TaskExecutionContext) OutputWriter

func (_mock *TaskExecutionContext) OutputWriter() io.OutputWriter

OutputWriter provides a mock function for the type TaskExecutionContext

func (*TaskExecutionContext) PluginStateReader

func (_mock *TaskExecutionContext) PluginStateReader() core0.PluginStateReader

PluginStateReader provides a mock function for the type TaskExecutionContext

func (*TaskExecutionContext) PluginStateWriter

func (_mock *TaskExecutionContext) PluginStateWriter() core0.PluginStateWriter

PluginStateWriter provides a mock function for the type TaskExecutionContext

func (*TaskExecutionContext) ResourceManager

func (_mock *TaskExecutionContext) ResourceManager() core0.ResourceManager

ResourceManager provides a mock function for the type TaskExecutionContext

func (*TaskExecutionContext) SecretManager

func (_mock *TaskExecutionContext) SecretManager() core0.SecretManager

SecretManager provides a mock function for the type TaskExecutionContext

func (*TaskExecutionContext) TaskExecutionMetadata

func (_mock *TaskExecutionContext) TaskExecutionMetadata() core0.TaskExecutionMetadata

TaskExecutionMetadata provides a mock function for the type TaskExecutionContext

func (*TaskExecutionContext) TaskReader

func (_mock *TaskExecutionContext) TaskReader() core0.TaskReader

TaskReader provides a mock function for the type TaskExecutionContext

func (*TaskExecutionContext) TaskRefreshIndicator

func (_mock *TaskExecutionContext) TaskRefreshIndicator() core0.SignalAsync

TaskRefreshIndicator provides a mock function for the type TaskExecutionContext

type TaskExecutionContext_Catalog_Call added in v2.0.1

type TaskExecutionContext_Catalog_Call struct {
	*mock.Call
}

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

func (*TaskExecutionContext_Catalog_Call) Return added in v2.0.1

func (*TaskExecutionContext_Catalog_Call) Run added in v2.0.1

func (*TaskExecutionContext_Catalog_Call) RunAndReturn added in v2.0.1

type TaskExecutionContext_DataStore_Call added in v2.0.1

type TaskExecutionContext_DataStore_Call struct {
	*mock.Call
}

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

func (*TaskExecutionContext_DataStore_Call) Return added in v2.0.1

func (*TaskExecutionContext_DataStore_Call) Run added in v2.0.1

func (*TaskExecutionContext_DataStore_Call) RunAndReturn added in v2.0.1

type TaskExecutionContext_Expecter added in v2.0.1

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

func (*TaskExecutionContext_Expecter) Catalog added in v2.0.1

Catalog is a helper method to define mock.On call

func (*TaskExecutionContext_Expecter) DataStore added in v2.0.1

DataStore is a helper method to define mock.On call

func (*TaskExecutionContext_Expecter) InputReader added in v2.0.1

InputReader is a helper method to define mock.On call

func (*TaskExecutionContext_Expecter) OutputWriter added in v2.0.1

OutputWriter is a helper method to define mock.On call

func (*TaskExecutionContext_Expecter) PluginStateReader added in v2.0.1

PluginStateReader is a helper method to define mock.On call

func (*TaskExecutionContext_Expecter) PluginStateWriter added in v2.0.1

PluginStateWriter is a helper method to define mock.On call

func (*TaskExecutionContext_Expecter) ResourceManager added in v2.0.1

ResourceManager is a helper method to define mock.On call

func (*TaskExecutionContext_Expecter) SecretManager added in v2.0.1

SecretManager is a helper method to define mock.On call

func (*TaskExecutionContext_Expecter) TaskExecutionMetadata added in v2.0.1

TaskExecutionMetadata is a helper method to define mock.On call

func (*TaskExecutionContext_Expecter) TaskReader added in v2.0.1

TaskReader is a helper method to define mock.On call

func (*TaskExecutionContext_Expecter) TaskRefreshIndicator added in v2.0.1

TaskRefreshIndicator is a helper method to define mock.On call

type TaskExecutionContext_InputReader_Call added in v2.0.1

type TaskExecutionContext_InputReader_Call struct {
	*mock.Call
}

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

func (*TaskExecutionContext_InputReader_Call) Return added in v2.0.1

func (*TaskExecutionContext_InputReader_Call) Run added in v2.0.1

func (*TaskExecutionContext_InputReader_Call) RunAndReturn added in v2.0.1

type TaskExecutionContext_OutputWriter_Call added in v2.0.1

type TaskExecutionContext_OutputWriter_Call struct {
	*mock.Call
}

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

func (*TaskExecutionContext_OutputWriter_Call) Return added in v2.0.1

func (*TaskExecutionContext_OutputWriter_Call) Run added in v2.0.1

func (*TaskExecutionContext_OutputWriter_Call) RunAndReturn added in v2.0.1

type TaskExecutionContext_PluginStateReader_Call added in v2.0.1

type TaskExecutionContext_PluginStateReader_Call struct {
	*mock.Call
}

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

func (*TaskExecutionContext_PluginStateReader_Call) Return added in v2.0.1

func (*TaskExecutionContext_PluginStateReader_Call) Run added in v2.0.1

func (*TaskExecutionContext_PluginStateReader_Call) RunAndReturn added in v2.0.1

type TaskExecutionContext_PluginStateWriter_Call added in v2.0.1

type TaskExecutionContext_PluginStateWriter_Call struct {
	*mock.Call
}

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

func (*TaskExecutionContext_PluginStateWriter_Call) Return added in v2.0.1

func (*TaskExecutionContext_PluginStateWriter_Call) Run added in v2.0.1

func (*TaskExecutionContext_PluginStateWriter_Call) RunAndReturn added in v2.0.1

type TaskExecutionContext_ResourceManager_Call added in v2.0.1

type TaskExecutionContext_ResourceManager_Call struct {
	*mock.Call
}

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

func (*TaskExecutionContext_ResourceManager_Call) Return added in v2.0.1

func (*TaskExecutionContext_ResourceManager_Call) Run added in v2.0.1

func (*TaskExecutionContext_ResourceManager_Call) RunAndReturn added in v2.0.1

type TaskExecutionContext_SecretManager_Call added in v2.0.1

type TaskExecutionContext_SecretManager_Call struct {
	*mock.Call
}

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

func (*TaskExecutionContext_SecretManager_Call) Return added in v2.0.1

func (*TaskExecutionContext_SecretManager_Call) Run added in v2.0.1

func (*TaskExecutionContext_SecretManager_Call) RunAndReturn added in v2.0.1

type TaskExecutionContext_TaskExecutionMetadata_Call added in v2.0.1

type TaskExecutionContext_TaskExecutionMetadata_Call struct {
	*mock.Call
}

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

func (*TaskExecutionContext_TaskExecutionMetadata_Call) Return added in v2.0.1

func (*TaskExecutionContext_TaskExecutionMetadata_Call) Run added in v2.0.1

func (*TaskExecutionContext_TaskExecutionMetadata_Call) RunAndReturn added in v2.0.1

type TaskExecutionContext_TaskReader_Call added in v2.0.1

type TaskExecutionContext_TaskReader_Call struct {
	*mock.Call
}

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

func (*TaskExecutionContext_TaskReader_Call) Return added in v2.0.1

func (*TaskExecutionContext_TaskReader_Call) Run added in v2.0.1

func (*TaskExecutionContext_TaskReader_Call) RunAndReturn added in v2.0.1

type TaskExecutionContext_TaskRefreshIndicator_Call added in v2.0.1

type TaskExecutionContext_TaskRefreshIndicator_Call struct {
	*mock.Call
}

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

func (*TaskExecutionContext_TaskRefreshIndicator_Call) Return added in v2.0.1

func (*TaskExecutionContext_TaskRefreshIndicator_Call) Run added in v2.0.1

func (*TaskExecutionContext_TaskRefreshIndicator_Call) RunAndReturn added in v2.0.1

type TaskExecutionID

type TaskExecutionID struct {
	mock.Mock
}

TaskExecutionID is an autogenerated mock type for the TaskExecutionID type

func NewTaskExecutionID added in v2.0.1

func NewTaskExecutionID(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskExecutionID

NewTaskExecutionID creates a new instance of TaskExecutionID. 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 (*TaskExecutionID) EXPECT added in v2.0.1

func (*TaskExecutionID) GetGeneratedName

func (_mock *TaskExecutionID) GetGeneratedName() string

GetGeneratedName provides a mock function for the type TaskExecutionID

func (*TaskExecutionID) GetGeneratedNameWith

func (_mock *TaskExecutionID) GetGeneratedNameWith(minLength int, maxLength int) (string, error)

GetGeneratedNameWith provides a mock function for the type TaskExecutionID

func (*TaskExecutionID) GetID

GetID provides a mock function for the type TaskExecutionID

func (*TaskExecutionID) GetUniqueNodeID

func (_mock *TaskExecutionID) GetUniqueNodeID() string

GetUniqueNodeID provides a mock function for the type TaskExecutionID

type TaskExecutionID_Expecter added in v2.0.1

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

func (*TaskExecutionID_Expecter) GetGeneratedName added in v2.0.1

GetGeneratedName is a helper method to define mock.On call

func (*TaskExecutionID_Expecter) GetGeneratedNameWith added in v2.0.1

func (_e *TaskExecutionID_Expecter) GetGeneratedNameWith(minLength interface{}, maxLength interface{}) *TaskExecutionID_GetGeneratedNameWith_Call

GetGeneratedNameWith is a helper method to define mock.On call

  • minLength int
  • maxLength int

func (*TaskExecutionID_Expecter) GetID added in v2.0.1

GetID is a helper method to define mock.On call

func (*TaskExecutionID_Expecter) GetUniqueNodeID added in v2.0.1

GetUniqueNodeID is a helper method to define mock.On call

type TaskExecutionID_GetGeneratedNameWith_Call added in v2.0.1

type TaskExecutionID_GetGeneratedNameWith_Call struct {
	*mock.Call
}

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

func (*TaskExecutionID_GetGeneratedNameWith_Call) Return added in v2.0.1

func (*TaskExecutionID_GetGeneratedNameWith_Call) Run added in v2.0.1

func (*TaskExecutionID_GetGeneratedNameWith_Call) RunAndReturn added in v2.0.1

func (_c *TaskExecutionID_GetGeneratedNameWith_Call) RunAndReturn(run func(minLength int, maxLength int) (string, error)) *TaskExecutionID_GetGeneratedNameWith_Call

type TaskExecutionID_GetGeneratedName_Call added in v2.0.1

type TaskExecutionID_GetGeneratedName_Call struct {
	*mock.Call
}

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

func (*TaskExecutionID_GetGeneratedName_Call) Return added in v2.0.1

func (*TaskExecutionID_GetGeneratedName_Call) Run added in v2.0.1

func (*TaskExecutionID_GetGeneratedName_Call) RunAndReturn added in v2.0.1

type TaskExecutionID_GetID_Call added in v2.0.1

type TaskExecutionID_GetID_Call struct {
	*mock.Call
}

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

func (*TaskExecutionID_GetID_Call) Return added in v2.0.1

func (*TaskExecutionID_GetID_Call) Run added in v2.0.1

func (*TaskExecutionID_GetID_Call) RunAndReturn added in v2.0.1

type TaskExecutionID_GetUniqueNodeID_Call added in v2.0.1

type TaskExecutionID_GetUniqueNodeID_Call struct {
	*mock.Call
}

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

func (*TaskExecutionID_GetUniqueNodeID_Call) Return added in v2.0.1

func (*TaskExecutionID_GetUniqueNodeID_Call) Run added in v2.0.1

func (*TaskExecutionID_GetUniqueNodeID_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata

type TaskExecutionMetadata struct {
	mock.Mock
}

TaskExecutionMetadata is an autogenerated mock type for the TaskExecutionMetadata type

func NewTaskExecutionMetadata added in v2.0.1

func NewTaskExecutionMetadata(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskExecutionMetadata

NewTaskExecutionMetadata creates a new instance of TaskExecutionMetadata. 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 (*TaskExecutionMetadata) EXPECT added in v2.0.1

func (*TaskExecutionMetadata) GetAnnotations

func (_mock *TaskExecutionMetadata) GetAnnotations() map[string]string

GetAnnotations provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetConsoleURL

func (_mock *TaskExecutionMetadata) GetConsoleURL() string

GetConsoleURL provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetEnvironmentVariables

func (_mock *TaskExecutionMetadata) GetEnvironmentVariables() map[string]string

GetEnvironmentVariables provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetExternalResourceAttributes

func (_mock *TaskExecutionMetadata) GetExternalResourceAttributes() core0.ExternalResourceAttributes

GetExternalResourceAttributes provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetInterruptibleFailureThreshold

func (_mock *TaskExecutionMetadata) GetInterruptibleFailureThreshold() int32

GetInterruptibleFailureThreshold provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetK8sServiceAccount

func (_mock *TaskExecutionMetadata) GetK8sServiceAccount() string

GetK8sServiceAccount provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetLabels

func (_mock *TaskExecutionMetadata) GetLabels() map[string]string

GetLabels provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetMaxAttempts

func (_mock *TaskExecutionMetadata) GetMaxAttempts() uint32

GetMaxAttempts provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetNamespace

func (_mock *TaskExecutionMetadata) GetNamespace() string

GetNamespace provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetOverrides

func (_mock *TaskExecutionMetadata) GetOverrides() core0.TaskOverrides

GetOverrides provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetOwnerID

func (_mock *TaskExecutionMetadata) GetOwnerID() types.NamespacedName

GetOwnerID provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetOwnerReference

func (_mock *TaskExecutionMetadata) GetOwnerReference() v10.OwnerReference

GetOwnerReference provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetPlatformResources

func (_mock *TaskExecutionMetadata) GetPlatformResources() *v1.ResourceRequirements

GetPlatformResources provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetSecurityContext

func (_mock *TaskExecutionMetadata) GetSecurityContext() *core.SecurityContext

GetSecurityContext provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) GetTaskExecutionID

func (_mock *TaskExecutionMetadata) GetTaskExecutionID() core0.TaskExecutionID

GetTaskExecutionID provides a mock function for the type TaskExecutionMetadata

func (*TaskExecutionMetadata) IsInterruptible

func (_mock *TaskExecutionMetadata) IsInterruptible() bool

IsInterruptible provides a mock function for the type TaskExecutionMetadata

type TaskExecutionMetadata_Expecter added in v2.0.1

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

func (*TaskExecutionMetadata_Expecter) GetAnnotations added in v2.0.1

GetAnnotations is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetConsoleURL added in v2.0.1

GetConsoleURL is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetEnvironmentVariables added in v2.0.1

GetEnvironmentVariables is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetExternalResourceAttributes added in v2.0.1

GetExternalResourceAttributes is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetInterruptibleFailureThreshold added in v2.0.1

GetInterruptibleFailureThreshold is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetK8sServiceAccount added in v2.0.1

GetK8sServiceAccount is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetLabels added in v2.0.1

GetLabels is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetMaxAttempts added in v2.0.1

GetMaxAttempts is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetNamespace added in v2.0.1

GetNamespace is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetOverrides added in v2.0.1

GetOverrides is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetOwnerID added in v2.0.1

GetOwnerID is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetOwnerReference added in v2.0.1

GetOwnerReference is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetPlatformResources added in v2.0.1

GetPlatformResources is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetSecurityContext added in v2.0.1

GetSecurityContext is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) GetTaskExecutionID added in v2.0.1

GetTaskExecutionID is a helper method to define mock.On call

func (*TaskExecutionMetadata_Expecter) IsInterruptible added in v2.0.1

IsInterruptible is a helper method to define mock.On call

type TaskExecutionMetadata_GetAnnotations_Call added in v2.0.1

type TaskExecutionMetadata_GetAnnotations_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetAnnotations_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetAnnotations_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetAnnotations_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetConsoleURL_Call added in v2.0.1

type TaskExecutionMetadata_GetConsoleURL_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetConsoleURL_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetConsoleURL_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetConsoleURL_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetEnvironmentVariables_Call added in v2.0.1

type TaskExecutionMetadata_GetEnvironmentVariables_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetEnvironmentVariables_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetEnvironmentVariables_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetEnvironmentVariables_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetExternalResourceAttributes_Call added in v2.0.1

type TaskExecutionMetadata_GetExternalResourceAttributes_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetExternalResourceAttributes_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetExternalResourceAttributes_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetExternalResourceAttributes_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetInterruptibleFailureThreshold_Call added in v2.0.1

type TaskExecutionMetadata_GetInterruptibleFailureThreshold_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetInterruptibleFailureThreshold_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetInterruptibleFailureThreshold_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetInterruptibleFailureThreshold_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetK8sServiceAccount_Call added in v2.0.1

type TaskExecutionMetadata_GetK8sServiceAccount_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetK8sServiceAccount_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetK8sServiceAccount_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetK8sServiceAccount_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetLabels_Call added in v2.0.1

type TaskExecutionMetadata_GetLabels_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetLabels_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetLabels_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetLabels_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetMaxAttempts_Call added in v2.0.1

type TaskExecutionMetadata_GetMaxAttempts_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetMaxAttempts_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetMaxAttempts_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetMaxAttempts_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetNamespace_Call added in v2.0.1

type TaskExecutionMetadata_GetNamespace_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetNamespace_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetNamespace_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetNamespace_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetOverrides_Call added in v2.0.1

type TaskExecutionMetadata_GetOverrides_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetOverrides_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetOverrides_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetOverrides_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetOwnerID_Call added in v2.0.1

type TaskExecutionMetadata_GetOwnerID_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetOwnerID_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetOwnerID_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetOwnerID_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetOwnerReference_Call added in v2.0.1

type TaskExecutionMetadata_GetOwnerReference_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetOwnerReference_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetOwnerReference_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetOwnerReference_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetPlatformResources_Call added in v2.0.1

type TaskExecutionMetadata_GetPlatformResources_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetPlatformResources_Call) Return added in v2.0.1

func (_c *TaskExecutionMetadata_GetPlatformResources_Call) Return(resourceRequirements *v1.ResourceRequirements) *TaskExecutionMetadata_GetPlatformResources_Call

func (*TaskExecutionMetadata_GetPlatformResources_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetPlatformResources_Call) RunAndReturn added in v2.0.1

func (_c *TaskExecutionMetadata_GetPlatformResources_Call) RunAndReturn(run func() *v1.ResourceRequirements) *TaskExecutionMetadata_GetPlatformResources_Call

type TaskExecutionMetadata_GetSecurityContext_Call added in v2.0.1

type TaskExecutionMetadata_GetSecurityContext_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetSecurityContext_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetSecurityContext_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetSecurityContext_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_GetTaskExecutionID_Call added in v2.0.1

type TaskExecutionMetadata_GetTaskExecutionID_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_GetTaskExecutionID_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_GetTaskExecutionID_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_GetTaskExecutionID_Call) RunAndReturn added in v2.0.1

type TaskExecutionMetadata_IsInterruptible_Call added in v2.0.1

type TaskExecutionMetadata_IsInterruptible_Call struct {
	*mock.Call
}

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

func (*TaskExecutionMetadata_IsInterruptible_Call) Return added in v2.0.1

func (*TaskExecutionMetadata_IsInterruptible_Call) Run added in v2.0.1

func (*TaskExecutionMetadata_IsInterruptible_Call) RunAndReturn added in v2.0.1

type TaskOverrides

type TaskOverrides struct {
	mock.Mock
}

TaskOverrides is an autogenerated mock type for the TaskOverrides type

func NewTaskOverrides added in v2.0.1

func NewTaskOverrides(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskOverrides

NewTaskOverrides creates a new instance of TaskOverrides. 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 (*TaskOverrides) EXPECT added in v2.0.1

func (_m *TaskOverrides) EXPECT() *TaskOverrides_Expecter

func (*TaskOverrides) GetConfig

func (_mock *TaskOverrides) GetConfig() map[string]string

GetConfig provides a mock function for the type TaskOverrides

func (*TaskOverrides) GetConfigMap

func (_mock *TaskOverrides) GetConfigMap() *v1.ConfigMap

GetConfigMap provides a mock function for the type TaskOverrides

func (*TaskOverrides) GetContainerImage

func (_mock *TaskOverrides) GetContainerImage() string

GetContainerImage provides a mock function for the type TaskOverrides

func (*TaskOverrides) GetExtendedResources

func (_mock *TaskOverrides) GetExtendedResources() *core.ExtendedResources

GetExtendedResources provides a mock function for the type TaskOverrides

func (*TaskOverrides) GetPodTemplate

func (_mock *TaskOverrides) GetPodTemplate() *core.K8SPod

GetPodTemplate provides a mock function for the type TaskOverrides

func (*TaskOverrides) GetResources

func (_mock *TaskOverrides) GetResources() *v1.ResourceRequirements

GetResources provides a mock function for the type TaskOverrides

type TaskOverrides_Expecter added in v2.0.1

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

func (*TaskOverrides_Expecter) GetConfig added in v2.0.1

GetConfig is a helper method to define mock.On call

func (*TaskOverrides_Expecter) GetConfigMap added in v2.0.1

GetConfigMap is a helper method to define mock.On call

func (*TaskOverrides_Expecter) GetContainerImage added in v2.0.1

GetContainerImage is a helper method to define mock.On call

func (*TaskOverrides_Expecter) GetExtendedResources added in v2.0.1

GetExtendedResources is a helper method to define mock.On call

func (*TaskOverrides_Expecter) GetPodTemplate added in v2.0.1

GetPodTemplate is a helper method to define mock.On call

func (*TaskOverrides_Expecter) GetResources added in v2.0.1

GetResources is a helper method to define mock.On call

type TaskOverrides_GetConfigMap_Call added in v2.0.1

type TaskOverrides_GetConfigMap_Call struct {
	*mock.Call
}

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

func (*TaskOverrides_GetConfigMap_Call) Return added in v2.0.1

func (_c *TaskOverrides_GetConfigMap_Call) Return(configMap *v1.ConfigMap) *TaskOverrides_GetConfigMap_Call

func (*TaskOverrides_GetConfigMap_Call) Run added in v2.0.1

func (*TaskOverrides_GetConfigMap_Call) RunAndReturn added in v2.0.1

func (_c *TaskOverrides_GetConfigMap_Call) RunAndReturn(run func() *v1.ConfigMap) *TaskOverrides_GetConfigMap_Call

type TaskOverrides_GetConfig_Call added in v2.0.1

type TaskOverrides_GetConfig_Call struct {
	*mock.Call
}

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

func (*TaskOverrides_GetConfig_Call) Return added in v2.0.1

func (*TaskOverrides_GetConfig_Call) Run added in v2.0.1

func (*TaskOverrides_GetConfig_Call) RunAndReturn added in v2.0.1

func (_c *TaskOverrides_GetConfig_Call) RunAndReturn(run func() map[string]string) *TaskOverrides_GetConfig_Call

type TaskOverrides_GetContainerImage_Call added in v2.0.1

type TaskOverrides_GetContainerImage_Call struct {
	*mock.Call
}

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

func (*TaskOverrides_GetContainerImage_Call) Return added in v2.0.1

func (*TaskOverrides_GetContainerImage_Call) Run added in v2.0.1

func (*TaskOverrides_GetContainerImage_Call) RunAndReturn added in v2.0.1

type TaskOverrides_GetExtendedResources_Call added in v2.0.1

type TaskOverrides_GetExtendedResources_Call struct {
	*mock.Call
}

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

func (*TaskOverrides_GetExtendedResources_Call) Return added in v2.0.1

func (*TaskOverrides_GetExtendedResources_Call) Run added in v2.0.1

func (*TaskOverrides_GetExtendedResources_Call) RunAndReturn added in v2.0.1

type TaskOverrides_GetPodTemplate_Call added in v2.0.1

type TaskOverrides_GetPodTemplate_Call struct {
	*mock.Call
}

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

func (*TaskOverrides_GetPodTemplate_Call) Return added in v2.0.1

func (*TaskOverrides_GetPodTemplate_Call) Run added in v2.0.1

func (*TaskOverrides_GetPodTemplate_Call) RunAndReturn added in v2.0.1

type TaskOverrides_GetResources_Call added in v2.0.1

type TaskOverrides_GetResources_Call struct {
	*mock.Call
}

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

func (*TaskOverrides_GetResources_Call) Return added in v2.0.1

func (_c *TaskOverrides_GetResources_Call) Return(resourceRequirements *v1.ResourceRequirements) *TaskOverrides_GetResources_Call

func (*TaskOverrides_GetResources_Call) Run added in v2.0.1

func (*TaskOverrides_GetResources_Call) RunAndReturn added in v2.0.1

func (_c *TaskOverrides_GetResources_Call) RunAndReturn(run func() *v1.ResourceRequirements) *TaskOverrides_GetResources_Call

type TaskReader

type TaskReader struct {
	mock.Mock
}

TaskReader is an autogenerated mock type for the TaskReader type

func NewTaskReader added in v2.0.1

func NewTaskReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskReader

NewTaskReader creates a new instance of TaskReader. 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 (*TaskReader) EXPECT added in v2.0.1

func (_m *TaskReader) EXPECT() *TaskReader_Expecter

func (*TaskReader) Path

func (_mock *TaskReader) Path(ctx context.Context) (storage.DataReference, error)

Path provides a mock function for the type TaskReader

func (*TaskReader) Read

func (_mock *TaskReader) Read(ctx context.Context) (*core.TaskTemplate, error)

Read provides a mock function for the type TaskReader

type TaskReader_Expecter added in v2.0.1

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

func (*TaskReader_Expecter) Path added in v2.0.1

func (_e *TaskReader_Expecter) Path(ctx interface{}) *TaskReader_Path_Call

Path is a helper method to define mock.On call

  • ctx context.Context

func (*TaskReader_Expecter) Read added in v2.0.1

func (_e *TaskReader_Expecter) Read(ctx interface{}) *TaskReader_Read_Call

Read is a helper method to define mock.On call

  • ctx context.Context

type TaskReader_Path_Call added in v2.0.1

type TaskReader_Path_Call struct {
	*mock.Call
}

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

func (*TaskReader_Path_Call) Return added in v2.0.1

func (_c *TaskReader_Path_Call) Return(dataReference storage.DataReference, err error) *TaskReader_Path_Call

func (*TaskReader_Path_Call) Run added in v2.0.1

func (_c *TaskReader_Path_Call) Run(run func(ctx context.Context)) *TaskReader_Path_Call

func (*TaskReader_Path_Call) RunAndReturn added in v2.0.1

type TaskReader_Read_Call added in v2.0.1

type TaskReader_Read_Call struct {
	*mock.Call
}

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

func (*TaskReader_Read_Call) Return added in v2.0.1

func (_c *TaskReader_Read_Call) Return(taskTemplate *core.TaskTemplate, err error) *TaskReader_Read_Call

func (*TaskReader_Read_Call) Run added in v2.0.1

func (_c *TaskReader_Read_Call) Run(run func(ctx context.Context)) *TaskReader_Read_Call

func (*TaskReader_Read_Call) RunAndReturn added in v2.0.1

func (_c *TaskReader_Read_Call) RunAndReturn(run func(ctx context.Context) (*core.TaskTemplate, error)) *TaskReader_Read_Call

type TaskTemplatePath

type TaskTemplatePath struct {
	mock.Mock
}

TaskTemplatePath is an autogenerated mock type for the TaskTemplatePath type

func NewTaskTemplatePath added in v2.0.1

func NewTaskTemplatePath(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskTemplatePath

NewTaskTemplatePath creates a new instance of TaskTemplatePath. 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 (*TaskTemplatePath) EXPECT added in v2.0.1

func (*TaskTemplatePath) Path

Path provides a mock function for the type TaskTemplatePath

type TaskTemplatePath_Expecter added in v2.0.1

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

func (*TaskTemplatePath_Expecter) Path added in v2.0.1

func (_e *TaskTemplatePath_Expecter) Path(ctx interface{}) *TaskTemplatePath_Path_Call

Path is a helper method to define mock.On call

  • ctx context.Context

type TaskTemplatePath_Path_Call added in v2.0.1

type TaskTemplatePath_Path_Call struct {
	*mock.Call
}

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

func (*TaskTemplatePath_Path_Call) Return added in v2.0.1

func (*TaskTemplatePath_Path_Call) Run added in v2.0.1

func (*TaskTemplatePath_Path_Call) RunAndReturn added in v2.0.1

Jump to

Keyboard shortcuts

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