mocks

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func (*Plugin) BuildIdentityResource

func (_m *Plugin) BuildIdentityResource(ctx context.Context, taskCtx core.TaskExecutionMetadata) (k8s.Resource, error)

BuildIdentityResource provides a mock function with given fields: ctx, taskCtx

func (*Plugin) BuildResource

func (_m *Plugin) BuildResource(ctx context.Context, taskCtx core.TaskExecutionContext) (k8s.Resource, error)

BuildResource provides a mock function with given fields: ctx, taskCtx

func (*Plugin) GetTaskPhase

func (_m *Plugin) GetTaskPhase(ctx context.Context, pluginContext k8s.PluginContext, resource k8s.Resource) (core.PhaseInfo, error)

GetTaskPhase provides a mock function with given fields: ctx, pluginContext, resource

func (*Plugin) OnBuildIdentityResource

func (_m *Plugin) OnBuildIdentityResource(ctx context.Context, taskCtx core.TaskExecutionMetadata) *Plugin_BuildIdentityResource

func (*Plugin) OnBuildIdentityResourceMatch

func (_m *Plugin) OnBuildIdentityResourceMatch(matchers ...interface{}) *Plugin_BuildIdentityResource

func (*Plugin) OnBuildResource

func (_m *Plugin) OnBuildResource(ctx context.Context, taskCtx core.TaskExecutionContext) *Plugin_BuildResource

func (*Plugin) OnBuildResourceMatch

func (_m *Plugin) OnBuildResourceMatch(matchers ...interface{}) *Plugin_BuildResource

func (*Plugin) OnGetTaskPhase

func (_m *Plugin) OnGetTaskPhase(ctx context.Context, pluginContext k8s.PluginContext, resource k8s.Resource) *Plugin_GetTaskPhase

func (*Plugin) OnGetTaskPhaseMatch

func (_m *Plugin) OnGetTaskPhaseMatch(matchers ...interface{}) *Plugin_GetTaskPhase

type PluginContext

type PluginContext struct {
	mock.Mock
}

PluginContext is an autogenerated mock type for the PluginContext type

func (*PluginContext) DataStore added in v0.5.3

func (_m *PluginContext) DataStore() *storage.DataStore

DataStore provides a mock function with given fields:

func (*PluginContext) InputReader

func (_m *PluginContext) InputReader() io.InputReader

InputReader provides a mock function with given fields:

func (*PluginContext) MaxDatasetSizeBytes added in v0.5.3

func (_m *PluginContext) MaxDatasetSizeBytes() int64

MaxDatasetSizeBytes provides a mock function with given fields:

func (*PluginContext) OnDataStore added in v0.5.3

func (_m *PluginContext) OnDataStore() *PluginContext_DataStore

func (*PluginContext) OnDataStoreMatch added in v0.5.3

func (_m *PluginContext) OnDataStoreMatch(matchers ...interface{}) *PluginContext_DataStore

func (*PluginContext) OnInputReader

func (_m *PluginContext) OnInputReader() *PluginContext_InputReader

func (*PluginContext) OnInputReaderMatch

func (_m *PluginContext) OnInputReaderMatch(matchers ...interface{}) *PluginContext_InputReader

func (*PluginContext) OnMaxDatasetSizeBytes added in v0.5.3

func (_m *PluginContext) OnMaxDatasetSizeBytes() *PluginContext_MaxDatasetSizeBytes

func (*PluginContext) OnMaxDatasetSizeBytesMatch added in v0.5.3

func (_m *PluginContext) OnMaxDatasetSizeBytesMatch(matchers ...interface{}) *PluginContext_MaxDatasetSizeBytes

func (*PluginContext) OnOutputWriter

func (_m *PluginContext) OnOutputWriter() *PluginContext_OutputWriter

func (*PluginContext) OnOutputWriterMatch

func (_m *PluginContext) OnOutputWriterMatch(matchers ...interface{}) *PluginContext_OutputWriter

func (*PluginContext) OnTaskReader

func (_m *PluginContext) OnTaskReader() *PluginContext_TaskReader

func (*PluginContext) OnTaskReaderMatch

func (_m *PluginContext) OnTaskReaderMatch(matchers ...interface{}) *PluginContext_TaskReader

func (*PluginContext) OutputWriter

func (_m *PluginContext) OutputWriter() io.OutputWriter

OutputWriter provides a mock function with given fields:

func (*PluginContext) TaskReader

func (_m *PluginContext) TaskReader() core.TaskReader

TaskReader provides a mock function with given fields:

type PluginContext_DataStore added in v0.5.3

type PluginContext_DataStore struct {
	*mock.Call
}

func (PluginContext_DataStore) Return added in v0.5.3

type PluginContext_InputReader

type PluginContext_InputReader struct {
	*mock.Call
}

func (PluginContext_InputReader) Return

type PluginContext_MaxDatasetSizeBytes added in v0.5.3

type PluginContext_MaxDatasetSizeBytes struct {
	*mock.Call
}

func (PluginContext_MaxDatasetSizeBytes) Return added in v0.5.3

type PluginContext_OutputWriter

type PluginContext_OutputWriter struct {
	*mock.Call
}

func (PluginContext_OutputWriter) Return

type PluginContext_TaskReader

type PluginContext_TaskReader struct {
	*mock.Call
}

func (PluginContext_TaskReader) Return

type Plugin_BuildIdentityResource

type Plugin_BuildIdentityResource struct {
	*mock.Call
}

func (Plugin_BuildIdentityResource) Return

type Plugin_BuildResource

type Plugin_BuildResource struct {
	*mock.Call
}

func (Plugin_BuildResource) Return

type Plugin_GetTaskPhase

type Plugin_GetTaskPhase struct {
	*mock.Call
}

func (Plugin_GetTaskPhase) Return

type Resource

type Resource struct {
	mock.Mock
}

Resource is an autogenerated mock type for the Resource type

func (*Resource) DeepCopyObject

func (_m *Resource) DeepCopyObject() runtime.Object

DeepCopyObject provides a mock function with given fields:

func (*Resource) GetAnnotations

func (_m *Resource) GetAnnotations() map[string]string

GetAnnotations provides a mock function with given fields:

func (*Resource) GetClusterName

func (_m *Resource) GetClusterName() string

GetClusterName provides a mock function with given fields:

func (*Resource) GetCreationTimestamp

func (_m *Resource) GetCreationTimestamp() v1.Time

GetCreationTimestamp provides a mock function with given fields:

func (*Resource) GetDeletionGracePeriodSeconds

func (_m *Resource) GetDeletionGracePeriodSeconds() *int64

GetDeletionGracePeriodSeconds provides a mock function with given fields:

func (*Resource) GetDeletionTimestamp

func (_m *Resource) GetDeletionTimestamp() *v1.Time

GetDeletionTimestamp provides a mock function with given fields:

func (*Resource) GetFinalizers

func (_m *Resource) GetFinalizers() []string

GetFinalizers provides a mock function with given fields:

func (*Resource) GetGenerateName

func (_m *Resource) GetGenerateName() string

GetGenerateName provides a mock function with given fields:

func (*Resource) GetGeneration

func (_m *Resource) GetGeneration() int64

GetGeneration provides a mock function with given fields:

func (*Resource) GetLabels

func (_m *Resource) GetLabels() map[string]string

GetLabels provides a mock function with given fields:

func (*Resource) GetManagedFields

func (_m *Resource) GetManagedFields() []v1.ManagedFieldsEntry

GetManagedFields provides a mock function with given fields:

func (*Resource) GetName

func (_m *Resource) GetName() string

GetName provides a mock function with given fields:

func (*Resource) GetNamespace

func (_m *Resource) GetNamespace() string

GetNamespace provides a mock function with given fields:

func (*Resource) GetObjectKind

func (_m *Resource) GetObjectKind() schema.ObjectKind

GetObjectKind provides a mock function with given fields:

func (*Resource) GetOwnerReferences

func (_m *Resource) GetOwnerReferences() []v1.OwnerReference

GetOwnerReferences provides a mock function with given fields:

func (*Resource) GetResourceVersion

func (_m *Resource) GetResourceVersion() string

GetResourceVersion provides a mock function with given fields:

func (_m *Resource) GetSelfLink() string

GetSelfLink provides a mock function with given fields:

func (*Resource) GetUID

func (_m *Resource) GetUID() types.UID

GetUID provides a mock function with given fields:

func (*Resource) GroupVersionKind

func (_m *Resource) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind provides a mock function with given fields:

func (*Resource) OnDeepCopyObject

func (_m *Resource) OnDeepCopyObject() *Resource_DeepCopyObject

func (*Resource) OnDeepCopyObjectMatch

func (_m *Resource) OnDeepCopyObjectMatch(matchers ...interface{}) *Resource_DeepCopyObject

func (*Resource) OnGetAnnotations

func (_m *Resource) OnGetAnnotations() *Resource_GetAnnotations

func (*Resource) OnGetAnnotationsMatch

func (_m *Resource) OnGetAnnotationsMatch(matchers ...interface{}) *Resource_GetAnnotations

func (*Resource) OnGetClusterName

func (_m *Resource) OnGetClusterName() *Resource_GetClusterName

func (*Resource) OnGetClusterNameMatch

func (_m *Resource) OnGetClusterNameMatch(matchers ...interface{}) *Resource_GetClusterName

func (*Resource) OnGetCreationTimestamp

func (_m *Resource) OnGetCreationTimestamp() *Resource_GetCreationTimestamp

func (*Resource) OnGetCreationTimestampMatch

func (_m *Resource) OnGetCreationTimestampMatch(matchers ...interface{}) *Resource_GetCreationTimestamp

func (*Resource) OnGetDeletionGracePeriodSeconds

func (_m *Resource) OnGetDeletionGracePeriodSeconds() *Resource_GetDeletionGracePeriodSeconds

func (*Resource) OnGetDeletionGracePeriodSecondsMatch

func (_m *Resource) OnGetDeletionGracePeriodSecondsMatch(matchers ...interface{}) *Resource_GetDeletionGracePeriodSeconds

func (*Resource) OnGetDeletionTimestamp

func (_m *Resource) OnGetDeletionTimestamp() *Resource_GetDeletionTimestamp

func (*Resource) OnGetDeletionTimestampMatch

func (_m *Resource) OnGetDeletionTimestampMatch(matchers ...interface{}) *Resource_GetDeletionTimestamp

func (*Resource) OnGetFinalizers

func (_m *Resource) OnGetFinalizers() *Resource_GetFinalizers

func (*Resource) OnGetFinalizersMatch

func (_m *Resource) OnGetFinalizersMatch(matchers ...interface{}) *Resource_GetFinalizers

func (*Resource) OnGetGenerateName

func (_m *Resource) OnGetGenerateName() *Resource_GetGenerateName

func (*Resource) OnGetGenerateNameMatch

func (_m *Resource) OnGetGenerateNameMatch(matchers ...interface{}) *Resource_GetGenerateName

func (*Resource) OnGetGeneration

func (_m *Resource) OnGetGeneration() *Resource_GetGeneration

func (*Resource) OnGetGenerationMatch

func (_m *Resource) OnGetGenerationMatch(matchers ...interface{}) *Resource_GetGeneration

func (*Resource) OnGetLabels

func (_m *Resource) OnGetLabels() *Resource_GetLabels

func (*Resource) OnGetLabelsMatch

func (_m *Resource) OnGetLabelsMatch(matchers ...interface{}) *Resource_GetLabels

func (*Resource) OnGetManagedFields

func (_m *Resource) OnGetManagedFields() *Resource_GetManagedFields

func (*Resource) OnGetManagedFieldsMatch

func (_m *Resource) OnGetManagedFieldsMatch(matchers ...interface{}) *Resource_GetManagedFields

func (*Resource) OnGetName

func (_m *Resource) OnGetName() *Resource_GetName

func (*Resource) OnGetNameMatch

func (_m *Resource) OnGetNameMatch(matchers ...interface{}) *Resource_GetName

func (*Resource) OnGetNamespace

func (_m *Resource) OnGetNamespace() *Resource_GetNamespace

func (*Resource) OnGetNamespaceMatch

func (_m *Resource) OnGetNamespaceMatch(matchers ...interface{}) *Resource_GetNamespace

func (*Resource) OnGetObjectKind

func (_m *Resource) OnGetObjectKind() *Resource_GetObjectKind

func (*Resource) OnGetObjectKindMatch

func (_m *Resource) OnGetObjectKindMatch(matchers ...interface{}) *Resource_GetObjectKind

func (*Resource) OnGetOwnerReferences

func (_m *Resource) OnGetOwnerReferences() *Resource_GetOwnerReferences

func (*Resource) OnGetOwnerReferencesMatch

func (_m *Resource) OnGetOwnerReferencesMatch(matchers ...interface{}) *Resource_GetOwnerReferences

func (*Resource) OnGetResourceVersion

func (_m *Resource) OnGetResourceVersion() *Resource_GetResourceVersion

func (*Resource) OnGetResourceVersionMatch

func (_m *Resource) OnGetResourceVersionMatch(matchers ...interface{}) *Resource_GetResourceVersion
func (_m *Resource) OnGetSelfLink() *Resource_GetSelfLink

func (*Resource) OnGetSelfLinkMatch

func (_m *Resource) OnGetSelfLinkMatch(matchers ...interface{}) *Resource_GetSelfLink

func (*Resource) OnGetUID

func (_m *Resource) OnGetUID() *Resource_GetUID

func (*Resource) OnGetUIDMatch

func (_m *Resource) OnGetUIDMatch(matchers ...interface{}) *Resource_GetUID

func (*Resource) OnGroupVersionKind

func (_m *Resource) OnGroupVersionKind() *Resource_GroupVersionKind

func (*Resource) OnGroupVersionKindMatch

func (_m *Resource) OnGroupVersionKindMatch(matchers ...interface{}) *Resource_GroupVersionKind

func (*Resource) SetAnnotations

func (_m *Resource) SetAnnotations(annotations map[string]string)

SetAnnotations provides a mock function with given fields: annotations

func (*Resource) SetClusterName

func (_m *Resource) SetClusterName(clusterName string)

SetClusterName provides a mock function with given fields: clusterName

func (*Resource) SetCreationTimestamp

func (_m *Resource) SetCreationTimestamp(timestamp v1.Time)

SetCreationTimestamp provides a mock function with given fields: timestamp

func (*Resource) SetDeletionGracePeriodSeconds

func (_m *Resource) SetDeletionGracePeriodSeconds(_a0 *int64)

SetDeletionGracePeriodSeconds provides a mock function with given fields: _a0

func (*Resource) SetDeletionTimestamp

func (_m *Resource) SetDeletionTimestamp(timestamp *v1.Time)

SetDeletionTimestamp provides a mock function with given fields: timestamp

func (*Resource) SetFinalizers

func (_m *Resource) SetFinalizers(finalizers []string)

SetFinalizers provides a mock function with given fields: finalizers

func (*Resource) SetGenerateName

func (_m *Resource) SetGenerateName(name string)

SetGenerateName provides a mock function with given fields: name

func (*Resource) SetGeneration

func (_m *Resource) SetGeneration(generation int64)

SetGeneration provides a mock function with given fields: generation

func (*Resource) SetGroupVersionKind

func (_m *Resource) SetGroupVersionKind(kind schema.GroupVersionKind)

SetGroupVersionKind provides a mock function with given fields: kind

func (*Resource) SetLabels

func (_m *Resource) SetLabels(labels map[string]string)

SetLabels provides a mock function with given fields: labels

func (*Resource) SetManagedFields

func (_m *Resource) SetManagedFields(managedFields []v1.ManagedFieldsEntry)

SetManagedFields provides a mock function with given fields: managedFields

func (*Resource) SetName

func (_m *Resource) SetName(name string)

SetName provides a mock function with given fields: name

func (*Resource) SetNamespace

func (_m *Resource) SetNamespace(namespace string)

SetNamespace provides a mock function with given fields: namespace

func (*Resource) SetOwnerReferences

func (_m *Resource) SetOwnerReferences(_a0 []v1.OwnerReference)

SetOwnerReferences provides a mock function with given fields: _a0

func (*Resource) SetResourceVersion

func (_m *Resource) SetResourceVersion(version string)

SetResourceVersion provides a mock function with given fields: version

func (_m *Resource) SetSelfLink(selfLink string)

SetSelfLink provides a mock function with given fields: selfLink

func (*Resource) SetUID

func (_m *Resource) SetUID(uid types.UID)

SetUID provides a mock function with given fields: uid

type Resource_DeepCopyObject

type Resource_DeepCopyObject struct {
	*mock.Call
}

func (Resource_DeepCopyObject) Return

type Resource_GetAnnotations

type Resource_GetAnnotations struct {
	*mock.Call
}

func (Resource_GetAnnotations) Return

type Resource_GetClusterName

type Resource_GetClusterName struct {
	*mock.Call
}

func (Resource_GetClusterName) Return

type Resource_GetCreationTimestamp

type Resource_GetCreationTimestamp struct {
	*mock.Call
}

func (Resource_GetCreationTimestamp) Return

type Resource_GetDeletionGracePeriodSeconds

type Resource_GetDeletionGracePeriodSeconds struct {
	*mock.Call
}

func (Resource_GetDeletionGracePeriodSeconds) Return

type Resource_GetDeletionTimestamp

type Resource_GetDeletionTimestamp struct {
	*mock.Call
}

func (Resource_GetDeletionTimestamp) Return

type Resource_GetFinalizers

type Resource_GetFinalizers struct {
	*mock.Call
}

func (Resource_GetFinalizers) Return

type Resource_GetGenerateName

type Resource_GetGenerateName struct {
	*mock.Call
}

func (Resource_GetGenerateName) Return

type Resource_GetGeneration

type Resource_GetGeneration struct {
	*mock.Call
}

func (Resource_GetGeneration) Return

type Resource_GetLabels

type Resource_GetLabels struct {
	*mock.Call
}

func (Resource_GetLabels) Return

func (_m Resource_GetLabels) Return(_a0 map[string]string) *Resource_GetLabels

type Resource_GetManagedFields

type Resource_GetManagedFields struct {
	*mock.Call
}

func (Resource_GetManagedFields) Return

type Resource_GetName

type Resource_GetName struct {
	*mock.Call
}

func (Resource_GetName) Return

func (_m Resource_GetName) Return(_a0 string) *Resource_GetName

type Resource_GetNamespace

type Resource_GetNamespace struct {
	*mock.Call
}

func (Resource_GetNamespace) Return

type Resource_GetObjectKind

type Resource_GetObjectKind struct {
	*mock.Call
}

func (Resource_GetObjectKind) Return

type Resource_GetOwnerReferences

type Resource_GetOwnerReferences struct {
	*mock.Call
}

func (Resource_GetOwnerReferences) Return

type Resource_GetResourceVersion

type Resource_GetResourceVersion struct {
	*mock.Call
}

func (Resource_GetResourceVersion) Return

type Resource_GetSelfLink struct {
	*mock.Call
}

func (Resource_GetSelfLink) Return

type Resource_GetUID

type Resource_GetUID struct {
	*mock.Call
}

func (Resource_GetUID) Return

func (_m Resource_GetUID) Return(_a0 types.UID) *Resource_GetUID

type Resource_GroupVersionKind

type Resource_GroupVersionKind struct {
	*mock.Call
}

func (Resource_GroupVersionKind) Return

Jump to

Keyboard shortcuts

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