mocks

package
v1.1.33 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncPlugin

type AsyncPlugin struct {
	mock.Mock
}

AsyncPlugin is an autogenerated mock type for the AsyncPlugin type

func (*AsyncPlugin) Create

func (_m *AsyncPlugin) Create(ctx context.Context, tCtx webapi.TaskExecutionContextReader) (interface{}, interface{}, error)

Create provides a mock function with given fields: ctx, tCtx

func (*AsyncPlugin) Delete

func (_m *AsyncPlugin) Delete(ctx context.Context, tCtx webapi.DeleteContext) error

Delete provides a mock function with given fields: ctx, tCtx

func (*AsyncPlugin) Get

func (_m *AsyncPlugin) Get(ctx context.Context, tCtx webapi.GetContext) (interface{}, error)

Get provides a mock function with given fields: ctx, tCtx

func (*AsyncPlugin) GetConfig

func (_m *AsyncPlugin) GetConfig() webapi.PluginConfig

GetConfig provides a mock function with given fields:

func (*AsyncPlugin) OnCreate

func (*AsyncPlugin) OnCreateMatch

func (_m *AsyncPlugin) OnCreateMatch(matchers ...interface{}) *AsyncPlugin_Create

func (*AsyncPlugin) OnDelete

func (*AsyncPlugin) OnDeleteMatch

func (_m *AsyncPlugin) OnDeleteMatch(matchers ...interface{}) *AsyncPlugin_Delete

func (*AsyncPlugin) OnGet

func (*AsyncPlugin) OnGetConfig

func (_m *AsyncPlugin) OnGetConfig() *AsyncPlugin_GetConfig

func (*AsyncPlugin) OnGetConfigMatch

func (_m *AsyncPlugin) OnGetConfigMatch(matchers ...interface{}) *AsyncPlugin_GetConfig

func (*AsyncPlugin) OnGetMatch

func (_m *AsyncPlugin) OnGetMatch(matchers ...interface{}) *AsyncPlugin_Get

func (*AsyncPlugin) OnResourceRequirementsMatch

func (_m *AsyncPlugin) OnResourceRequirementsMatch(matchers ...interface{}) *AsyncPlugin_ResourceRequirements

func (*AsyncPlugin) OnStatus

func (*AsyncPlugin) OnStatusMatch

func (_m *AsyncPlugin) OnStatusMatch(matchers ...interface{}) *AsyncPlugin_Status

func (*AsyncPlugin) ResourceRequirements

ResourceRequirements provides a mock function with given fields: ctx, tCtx

func (*AsyncPlugin) Status

Status provides a mock function with given fields: ctx, tCtx

type AsyncPlugin_Create

type AsyncPlugin_Create struct {
	*mock.Call
}

func (AsyncPlugin_Create) Return

func (_m AsyncPlugin_Create) Return(resourceMeta interface{}, optionalResource interface{}, err error) *AsyncPlugin_Create

type AsyncPlugin_Delete

type AsyncPlugin_Delete struct {
	*mock.Call
}

func (AsyncPlugin_Delete) Return

type AsyncPlugin_Get

type AsyncPlugin_Get struct {
	*mock.Call
}

func (AsyncPlugin_Get) Return

func (_m AsyncPlugin_Get) Return(latest interface{}, err error) *AsyncPlugin_Get

type AsyncPlugin_GetConfig

type AsyncPlugin_GetConfig struct {
	*mock.Call
}

func (AsyncPlugin_GetConfig) Return

type AsyncPlugin_ResourceRequirements

type AsyncPlugin_ResourceRequirements struct {
	*mock.Call
}

func (AsyncPlugin_ResourceRequirements) Return

type AsyncPlugin_Status

type AsyncPlugin_Status struct {
	*mock.Call
}

func (AsyncPlugin_Status) Return

func (_m AsyncPlugin_Status) Return(phase core.PhaseInfo, err error) *AsyncPlugin_Status

type DeleteContext

type DeleteContext struct {
	mock.Mock
}

DeleteContext is an autogenerated mock type for the DeleteContext type

func (*DeleteContext) OnReason

func (_m *DeleteContext) OnReason() *DeleteContext_Reason

func (*DeleteContext) OnReasonMatch

func (_m *DeleteContext) OnReasonMatch(matchers ...interface{}) *DeleteContext_Reason

func (*DeleteContext) OnResourceMeta

func (_m *DeleteContext) OnResourceMeta() *DeleteContext_ResourceMeta

func (*DeleteContext) OnResourceMetaMatch

func (_m *DeleteContext) OnResourceMetaMatch(matchers ...interface{}) *DeleteContext_ResourceMeta

func (*DeleteContext) Reason

func (_m *DeleteContext) Reason() string

Reason provides a mock function with given fields:

func (*DeleteContext) ResourceMeta

func (_m *DeleteContext) ResourceMeta() interface{}

ResourceMeta provides a mock function with given fields:

type DeleteContext_Reason

type DeleteContext_Reason struct {
	*mock.Call
}

func (DeleteContext_Reason) Return

type DeleteContext_ResourceMeta

type DeleteContext_ResourceMeta struct {
	*mock.Call
}

func (DeleteContext_ResourceMeta) Return

func (_m DeleteContext_ResourceMeta) Return(_a0 interface{}) *DeleteContext_ResourceMeta

type GetContext

type GetContext struct {
	mock.Mock
}

GetContext is an autogenerated mock type for the GetContext type

func (*GetContext) OnResourceMeta

func (_m *GetContext) OnResourceMeta() *GetContext_ResourceMeta

func (*GetContext) OnResourceMetaMatch

func (_m *GetContext) OnResourceMetaMatch(matchers ...interface{}) *GetContext_ResourceMeta

func (*GetContext) ResourceMeta

func (_m *GetContext) ResourceMeta() interface{}

ResourceMeta provides a mock function with given fields:

type GetContext_ResourceMeta

type GetContext_ResourceMeta struct {
	*mock.Call
}

func (GetContext_ResourceMeta) Return

func (_m GetContext_ResourceMeta) Return(_a0 interface{}) *GetContext_ResourceMeta

type PluginSetupContext

type PluginSetupContext struct {
	mock.Mock
}

PluginSetupContext is an autogenerated mock type for the PluginSetupContext type

func (*PluginSetupContext) MetricsScope

func (_m *PluginSetupContext) MetricsScope() promutils.Scope

MetricsScope provides a mock function with given fields:

func (*PluginSetupContext) OnMetricsScope

func (*PluginSetupContext) OnMetricsScopeMatch

func (_m *PluginSetupContext) OnMetricsScopeMatch(matchers ...interface{}) *PluginSetupContext_MetricsScope

type PluginSetupContext_MetricsScope

type PluginSetupContext_MetricsScope struct {
	*mock.Call
}

func (PluginSetupContext_MetricsScope) Return

type RemoteResource

type RemoteResource struct {
	mock.Mock
}

RemoteResource is an autogenerated mock type for the RemoteResource type

type Resource

type Resource struct {
	mock.Mock
}

Resource is an autogenerated mock type for the Resource type

func (*Resource) ID

func (_m *Resource) ID() string

ID provides a mock function with given fields:

func (*Resource) OnID

func (_m *Resource) OnID() *Resource_ID

func (*Resource) OnIDMatch

func (_m *Resource) OnIDMatch(matchers ...interface{}) *Resource_ID

func (*Resource) OnStatus

func (_m *Resource) OnStatus() *Resource_Status

func (*Resource) OnStatusMatch

func (_m *Resource) OnStatusMatch(matchers ...interface{}) *Resource_Status

func (*Resource) Status

func (_m *Resource) Status() (core.PhaseInfo, error)

Status provides a mock function with given fields:

type Resource_ID

type Resource_ID struct {
	*mock.Call
}

func (Resource_ID) Return

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

type Resource_Status

type Resource_Status struct {
	*mock.Call
}

func (Resource_Status) Return

func (_m Resource_Status) Return(phase core.PhaseInfo, err error) *Resource_Status

type StatusContext

type StatusContext struct {
	mock.Mock
}

StatusContext is an autogenerated mock type for the StatusContext type

func (*StatusContext) DataStore

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

DataStore provides a mock function with given fields:

func (*StatusContext) InputReader

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

InputReader provides a mock function with given fields:

func (*StatusContext) MaxDatasetSizeBytes

func (_m *StatusContext) MaxDatasetSizeBytes() int64

MaxDatasetSizeBytes provides a mock function with given fields:

func (*StatusContext) OnDataStore

func (_m *StatusContext) OnDataStore() *StatusContext_DataStore

func (*StatusContext) OnDataStoreMatch

func (_m *StatusContext) OnDataStoreMatch(matchers ...interface{}) *StatusContext_DataStore

func (*StatusContext) OnInputReader

func (_m *StatusContext) OnInputReader() *StatusContext_InputReader

func (*StatusContext) OnInputReaderMatch

func (_m *StatusContext) OnInputReaderMatch(matchers ...interface{}) *StatusContext_InputReader

func (*StatusContext) OnMaxDatasetSizeBytes

func (_m *StatusContext) OnMaxDatasetSizeBytes() *StatusContext_MaxDatasetSizeBytes

func (*StatusContext) OnMaxDatasetSizeBytesMatch

func (_m *StatusContext) OnMaxDatasetSizeBytesMatch(matchers ...interface{}) *StatusContext_MaxDatasetSizeBytes

func (*StatusContext) OnOutputWriter

func (_m *StatusContext) OnOutputWriter() *StatusContext_OutputWriter

func (*StatusContext) OnOutputWriterMatch

func (_m *StatusContext) OnOutputWriterMatch(matchers ...interface{}) *StatusContext_OutputWriter

func (*StatusContext) OnResource

func (_m *StatusContext) OnResource() *StatusContext_Resource

func (*StatusContext) OnResourceMatch

func (_m *StatusContext) OnResourceMatch(matchers ...interface{}) *StatusContext_Resource

func (*StatusContext) OnResourceMeta

func (_m *StatusContext) OnResourceMeta() *StatusContext_ResourceMeta

func (*StatusContext) OnResourceMetaMatch

func (_m *StatusContext) OnResourceMetaMatch(matchers ...interface{}) *StatusContext_ResourceMeta

func (*StatusContext) OnSecretManager

func (_m *StatusContext) OnSecretManager() *StatusContext_SecretManager

func (*StatusContext) OnSecretManagerMatch

func (_m *StatusContext) OnSecretManagerMatch(matchers ...interface{}) *StatusContext_SecretManager

func (*StatusContext) OnTaskExecutionMetadata

func (_m *StatusContext) OnTaskExecutionMetadata() *StatusContext_TaskExecutionMetadata

func (*StatusContext) OnTaskExecutionMetadataMatch

func (_m *StatusContext) OnTaskExecutionMetadataMatch(matchers ...interface{}) *StatusContext_TaskExecutionMetadata

func (*StatusContext) OnTaskReader

func (_m *StatusContext) OnTaskReader() *StatusContext_TaskReader

func (*StatusContext) OnTaskReaderMatch

func (_m *StatusContext) OnTaskReaderMatch(matchers ...interface{}) *StatusContext_TaskReader

func (*StatusContext) OutputWriter

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

OutputWriter provides a mock function with given fields:

func (*StatusContext) Resource

func (_m *StatusContext) Resource() interface{}

Resource provides a mock function with given fields:

func (*StatusContext) ResourceMeta

func (_m *StatusContext) ResourceMeta() interface{}

ResourceMeta provides a mock function with given fields:

func (*StatusContext) SecretManager

func (_m *StatusContext) SecretManager() core.SecretManager

SecretManager provides a mock function with given fields:

func (*StatusContext) TaskExecutionMetadata

func (_m *StatusContext) TaskExecutionMetadata() core.TaskExecutionMetadata

TaskExecutionMetadata provides a mock function with given fields:

func (*StatusContext) TaskReader

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

TaskReader provides a mock function with given fields:

type StatusContext_DataStore

type StatusContext_DataStore struct {
	*mock.Call
}

func (StatusContext_DataStore) Return

type StatusContext_InputReader

type StatusContext_InputReader struct {
	*mock.Call
}

func (StatusContext_InputReader) Return

type StatusContext_MaxDatasetSizeBytes

type StatusContext_MaxDatasetSizeBytes struct {
	*mock.Call
}

func (StatusContext_MaxDatasetSizeBytes) Return

type StatusContext_OutputWriter

type StatusContext_OutputWriter struct {
	*mock.Call
}

func (StatusContext_OutputWriter) Return

type StatusContext_Resource

type StatusContext_Resource struct {
	*mock.Call
}

func (StatusContext_Resource) Return

func (_m StatusContext_Resource) Return(_a0 interface{}) *StatusContext_Resource

type StatusContext_ResourceMeta

type StatusContext_ResourceMeta struct {
	*mock.Call
}

func (StatusContext_ResourceMeta) Return

func (_m StatusContext_ResourceMeta) Return(_a0 interface{}) *StatusContext_ResourceMeta

type StatusContext_SecretManager

type StatusContext_SecretManager struct {
	*mock.Call
}

func (StatusContext_SecretManager) Return

type StatusContext_TaskExecutionMetadata

type StatusContext_TaskExecutionMetadata struct {
	*mock.Call
}

func (StatusContext_TaskExecutionMetadata) Return

type StatusContext_TaskReader

type StatusContext_TaskReader struct {
	*mock.Call
}

func (StatusContext_TaskReader) Return

type SyncPlugin

type SyncPlugin struct {
	mock.Mock
}

SyncPlugin is an autogenerated mock type for the SyncPlugin type

func (*SyncPlugin) Do

Do provides a mock function with given fields: ctx, tCtx

func (*SyncPlugin) GetConfig

func (_m *SyncPlugin) GetConfig() webapi.PluginConfig

GetConfig provides a mock function with given fields:

func (*SyncPlugin) OnDo

func (*SyncPlugin) OnDoMatch

func (_m *SyncPlugin) OnDoMatch(matchers ...interface{}) *SyncPlugin_Do

func (*SyncPlugin) OnGetConfig

func (_m *SyncPlugin) OnGetConfig() *SyncPlugin_GetConfig

func (*SyncPlugin) OnGetConfigMatch

func (_m *SyncPlugin) OnGetConfigMatch(matchers ...interface{}) *SyncPlugin_GetConfig

type SyncPlugin_Do

type SyncPlugin_Do struct {
	*mock.Call
}

func (SyncPlugin_Do) Return

func (_m SyncPlugin_Do) Return(phase core.PhaseInfo, err error) *SyncPlugin_Do

type SyncPlugin_GetConfig

type SyncPlugin_GetConfig struct {
	*mock.Call
}

func (SyncPlugin_GetConfig) Return

type TaskExecutionContext

type TaskExecutionContext struct {
	mock.Mock
}

TaskExecutionContext is an autogenerated mock type for the TaskExecutionContext type

func (*TaskExecutionContext) DataStore

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

DataStore provides a mock function with given fields:

func (*TaskExecutionContext) InputReader

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

InputReader provides a mock function with given fields:

func (*TaskExecutionContext) MaxDatasetSizeBytes

func (_m *TaskExecutionContext) MaxDatasetSizeBytes() int64

MaxDatasetSizeBytes provides a mock function with given fields:

func (*TaskExecutionContext) OnDataStore

func (*TaskExecutionContext) OnDataStoreMatch

func (_m *TaskExecutionContext) OnDataStoreMatch(matchers ...interface{}) *TaskExecutionContext_DataStore

func (*TaskExecutionContext) OnInputReader

func (*TaskExecutionContext) OnInputReaderMatch

func (_m *TaskExecutionContext) OnInputReaderMatch(matchers ...interface{}) *TaskExecutionContext_InputReader

func (*TaskExecutionContext) OnMaxDatasetSizeBytes

func (*TaskExecutionContext) OnMaxDatasetSizeBytesMatch

func (_m *TaskExecutionContext) OnMaxDatasetSizeBytesMatch(matchers ...interface{}) *TaskExecutionContext_MaxDatasetSizeBytes

func (*TaskExecutionContext) OnOutputWriter

func (*TaskExecutionContext) OnOutputWriterMatch

func (_m *TaskExecutionContext) OnOutputWriterMatch(matchers ...interface{}) *TaskExecutionContext_OutputWriter

func (*TaskExecutionContext) OnSecretManager

func (*TaskExecutionContext) OnSecretManagerMatch

func (_m *TaskExecutionContext) OnSecretManagerMatch(matchers ...interface{}) *TaskExecutionContext_SecretManager

func (*TaskExecutionContext) OnTaskExecutionMetadata

func (*TaskExecutionContext) OnTaskExecutionMetadataMatch

func (_m *TaskExecutionContext) OnTaskExecutionMetadataMatch(matchers ...interface{}) *TaskExecutionContext_TaskExecutionMetadata

func (*TaskExecutionContext) OnTaskReader

func (*TaskExecutionContext) OnTaskReaderMatch

func (_m *TaskExecutionContext) OnTaskReaderMatch(matchers ...interface{}) *TaskExecutionContext_TaskReader

func (*TaskExecutionContext) OutputWriter

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

OutputWriter provides a mock function with given fields:

func (*TaskExecutionContext) SecretManager

func (_m *TaskExecutionContext) SecretManager() core.SecretManager

SecretManager provides a mock function with given fields:

func (*TaskExecutionContext) TaskExecutionMetadata

func (_m *TaskExecutionContext) TaskExecutionMetadata() core.TaskExecutionMetadata

TaskExecutionMetadata provides a mock function with given fields:

func (*TaskExecutionContext) TaskReader

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

TaskReader provides a mock function with given fields:

type TaskExecutionContextReader

type TaskExecutionContextReader struct {
	mock.Mock
}

TaskExecutionContextReader is an autogenerated mock type for the TaskExecutionContextReader type

func (*TaskExecutionContextReader) InputReader

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

InputReader provides a mock function with given fields:

func (*TaskExecutionContextReader) OnInputReader

func (*TaskExecutionContextReader) OnInputReaderMatch

func (_m *TaskExecutionContextReader) OnInputReaderMatch(matchers ...interface{}) *TaskExecutionContextReader_InputReader

func (*TaskExecutionContextReader) OnOutputWriter

func (*TaskExecutionContextReader) OnOutputWriterMatch

func (_m *TaskExecutionContextReader) OnOutputWriterMatch(matchers ...interface{}) *TaskExecutionContextReader_OutputWriter

func (*TaskExecutionContextReader) OnSecretManager

func (*TaskExecutionContextReader) OnSecretManagerMatch

func (_m *TaskExecutionContextReader) OnSecretManagerMatch(matchers ...interface{}) *TaskExecutionContextReader_SecretManager

func (*TaskExecutionContextReader) OnTaskExecutionMetadata

func (*TaskExecutionContextReader) OnTaskExecutionMetadataMatch

func (_m *TaskExecutionContextReader) OnTaskExecutionMetadataMatch(matchers ...interface{}) *TaskExecutionContextReader_TaskExecutionMetadata

func (*TaskExecutionContextReader) OnTaskReader

func (*TaskExecutionContextReader) OnTaskReaderMatch

func (_m *TaskExecutionContextReader) OnTaskReaderMatch(matchers ...interface{}) *TaskExecutionContextReader_TaskReader

func (*TaskExecutionContextReader) OutputWriter

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

OutputWriter provides a mock function with given fields:

func (*TaskExecutionContextReader) SecretManager

func (_m *TaskExecutionContextReader) SecretManager() core.SecretManager

SecretManager provides a mock function with given fields:

func (*TaskExecutionContextReader) TaskExecutionMetadata

func (_m *TaskExecutionContextReader) TaskExecutionMetadata() core.TaskExecutionMetadata

TaskExecutionMetadata provides a mock function with given fields:

func (*TaskExecutionContextReader) TaskReader

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

TaskReader provides a mock function with given fields:

type TaskExecutionContextReader_InputReader

type TaskExecutionContextReader_InputReader struct {
	*mock.Call
}

func (TaskExecutionContextReader_InputReader) Return

type TaskExecutionContextReader_OutputWriter

type TaskExecutionContextReader_OutputWriter struct {
	*mock.Call
}

func (TaskExecutionContextReader_OutputWriter) Return

type TaskExecutionContextReader_SecretManager

type TaskExecutionContextReader_SecretManager struct {
	*mock.Call
}

func (TaskExecutionContextReader_SecretManager) Return

type TaskExecutionContextReader_TaskExecutionMetadata

type TaskExecutionContextReader_TaskExecutionMetadata struct {
	*mock.Call
}

func (TaskExecutionContextReader_TaskExecutionMetadata) Return

type TaskExecutionContextReader_TaskReader

type TaskExecutionContextReader_TaskReader struct {
	*mock.Call
}

func (TaskExecutionContextReader_TaskReader) Return

type TaskExecutionContext_DataStore

type TaskExecutionContext_DataStore struct {
	*mock.Call
}

func (TaskExecutionContext_DataStore) Return

type TaskExecutionContext_InputReader

type TaskExecutionContext_InputReader struct {
	*mock.Call
}

func (TaskExecutionContext_InputReader) Return

type TaskExecutionContext_MaxDatasetSizeBytes

type TaskExecutionContext_MaxDatasetSizeBytes struct {
	*mock.Call
}

func (TaskExecutionContext_MaxDatasetSizeBytes) Return

type TaskExecutionContext_OutputWriter

type TaskExecutionContext_OutputWriter struct {
	*mock.Call
}

func (TaskExecutionContext_OutputWriter) Return

type TaskExecutionContext_SecretManager

type TaskExecutionContext_SecretManager struct {
	*mock.Call
}

func (TaskExecutionContext_SecretManager) Return

type TaskExecutionContext_TaskExecutionMetadata

type TaskExecutionContext_TaskExecutionMetadata struct {
	*mock.Call
}

func (TaskExecutionContext_TaskExecutionMetadata) Return

type TaskExecutionContext_TaskReader

type TaskExecutionContext_TaskReader struct {
	*mock.Call
}

func (TaskExecutionContext_TaskReader) Return

Jump to

Keyboard shortcuts

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