mocks

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier struct {
	mock.Mock
}

Applier is an autogenerated mock type for the Applier type

func NewApplier

func NewApplier(t mockConstructorTestingTNewApplier) *Applier

NewApplier creates a new instance of Applier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Applier) ApplyWithOwner

func (_m *Applier) ApplyWithOwner(doc apply.YamlDocument, namespace string, resource v1.Object) error

ApplyWithOwner provides a mock function with given fields: doc, namespace, resource

type AsyncExecutor added in v0.19.0

type AsyncExecutor struct {
	mock.Mock
}

AsyncExecutor is an autogenerated mock type for the AsyncExecutor type

func NewAsyncExecutor added in v0.19.0

func NewAsyncExecutor(t mockConstructorTestingTNewAsyncExecutor) *AsyncExecutor

NewAsyncExecutor creates a new instance of AsyncExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AsyncExecutor) AddStep added in v0.19.0

func (_m *AsyncExecutor) AddStep(step internal.AsyncStep)

AddStep provides a mock function with given fields: step

func (*AsyncExecutor) Execute added in v0.19.0

func (_m *AsyncExecutor) Execute(ctx context.Context, dogu *v1.Dogu, currentState string) error

Execute provides a mock function with given fields: ctx, dogu, currentState

type AsyncStep added in v0.19.0

type AsyncStep struct {
	mock.Mock
}

AsyncStep is an autogenerated mock type for the AsyncStep type

func NewAsyncStep added in v0.19.0

func NewAsyncStep(t mockConstructorTestingTNewAsyncStep) *AsyncStep

NewAsyncStep creates a new instance of AsyncStep. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AsyncStep) Execute added in v0.19.0

func (_m *AsyncStep) Execute(ctx context.Context, dogu *v1.Dogu) (string, error)

Execute provides a mock function with given fields: ctx, dogu

func (*AsyncStep) GetStartCondition added in v0.19.0

func (_m *AsyncStep) GetStartCondition() string

GetStartCondition provides a mock function with given fields:

type CollectApplier

type CollectApplier struct {
	mock.Mock
}

CollectApplier is an autogenerated mock type for the CollectApplier type

func NewCollectApplier

func NewCollectApplier(t mockConstructorTestingTNewCollectApplier) *CollectApplier

NewCollectApplier creates a new instance of CollectApplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CollectApplier) CollectApply

func (_m *CollectApplier) CollectApply(ctx context.Context, customK8sResources map[string]string, doguResource *v1.Dogu) error

CollectApply provides a mock function with given fields: ctx, customK8sResources, doguResource

type CommandExecutor

type CommandExecutor struct {
	mock.Mock
}

CommandExecutor is an autogenerated mock type for the CommandExecutor type

func NewCommandExecutor

func NewCommandExecutor(t mockConstructorTestingTNewCommandExecutor) *CommandExecutor

NewCommandExecutor creates a new instance of CommandExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CommandExecutor) ExecCommandForDogu

func (_m *CommandExecutor) ExecCommandForDogu(ctx context.Context, resource *v1.Dogu, command internal.ShellCommand, expected internal.PodStatusForExec) (*bytes.Buffer, error)

ExecCommandForDogu provides a mock function with given fields: ctx, resource, command, expected

func (*CommandExecutor) ExecCommandForPod

func (_m *CommandExecutor) ExecCommandForPod(ctx context.Context, pod *corev1.Pod, command internal.ShellCommand, expected internal.PodStatusForExec) (*bytes.Buffer, error)

ExecCommandForPod provides a mock function with given fields: ctx, pod, command, expected

type DeleteManager

type DeleteManager struct {
	mock.Mock
}

DeleteManager is an autogenerated mock type for the DeleteManager type

func NewDeleteManager

func NewDeleteManager(t mockConstructorTestingTNewDeleteManager) *DeleteManager

NewDeleteManager creates a new instance of DeleteManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DeleteManager) Delete

func (_m *DeleteManager) Delete(ctx context.Context, doguResource *v1.Dogu) error

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

type DependencyValidator

type DependencyValidator struct {
	mock.Mock
}

DependencyValidator is an autogenerated mock type for the DependencyValidator type

func NewDependencyValidator

func NewDependencyValidator(t mockConstructorTestingTNewDependencyValidator) *DependencyValidator

NewDependencyValidator creates a new instance of DependencyValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DependencyValidator) ValidateDependencies

func (_m *DependencyValidator) ValidateDependencies(ctx context.Context, dogu *core.Dogu) error

ValidateDependencies provides a mock function with given fields: ctx, dogu

type DoguHealthChecker

type DoguHealthChecker struct {
	mock.Mock
}

DoguHealthChecker is an autogenerated mock type for the DoguHealthChecker type

func NewDoguHealthChecker

func NewDoguHealthChecker(t mockConstructorTestingTNewDoguHealthChecker) *DoguHealthChecker

NewDoguHealthChecker creates a new instance of DoguHealthChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DoguHealthChecker) CheckWithResource

func (_m *DoguHealthChecker) CheckWithResource(ctx context.Context, doguResource *v1.Dogu) error

CheckWithResource provides a mock function with given fields: ctx, doguResource

type DoguLimits

type DoguLimits struct {
	mock.Mock
}

DoguLimits is an autogenerated mock type for the DoguLimits type

func NewDoguLimits

func NewDoguLimits(t mockConstructorTestingTNewDoguLimits) *DoguLimits

NewDoguLimits creates a new instance of DoguLimits. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DoguLimits) CpuLimit

func (_m *DoguLimits) CpuLimit() *resource.Quantity

CpuLimit provides a mock function with given fields:

func (*DoguLimits) EphemeralStorageLimit

func (_m *DoguLimits) EphemeralStorageLimit() *resource.Quantity

EphemeralStorageLimit provides a mock function with given fields:

func (*DoguLimits) MemoryLimit

func (_m *DoguLimits) MemoryLimit() *resource.Quantity

MemoryLimit provides a mock function with given fields:

type DoguManager

type DoguManager struct {
	mock.Mock
}

DoguManager is an autogenerated mock type for the DoguManager type

func NewDoguManager

func NewDoguManager(t mockConstructorTestingTNewDoguManager) *DoguManager

NewDoguManager creates a new instance of DoguManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DoguManager) Delete

func (_m *DoguManager) Delete(ctx context.Context, doguResource *v1.Dogu) error

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

func (*DoguManager) HandleSupportMode

func (_m *DoguManager) HandleSupportMode(ctx context.Context, doguResource *v1.Dogu) (bool, error)

HandleSupportMode provides a mock function with given fields: ctx, doguResource

func (*DoguManager) Install

func (_m *DoguManager) Install(ctx context.Context, doguResource *v1.Dogu) error

Install provides a mock function with given fields: ctx, doguResource

func (*DoguManager) SetDoguDataVolumeSize added in v0.19.0

func (_m *DoguManager) SetDoguDataVolumeSize(ctx context.Context, doguResource *v1.Dogu) error

SetDoguDataVolumeSize provides a mock function with given fields: ctx, doguResource

func (*DoguManager) Upgrade

func (_m *DoguManager) Upgrade(ctx context.Context, doguResource *v1.Dogu) error

Upgrade provides a mock function with given fields: ctx, doguResource

type DoguRecursiveHealthChecker

type DoguRecursiveHealthChecker struct {
	mock.Mock
}

DoguRecursiveHealthChecker is an autogenerated mock type for the DoguRecursiveHealthChecker type

func NewDoguRecursiveHealthChecker

func NewDoguRecursiveHealthChecker(t mockConstructorTestingTNewDoguRecursiveHealthChecker) *DoguRecursiveHealthChecker

NewDoguRecursiveHealthChecker creates a new instance of DoguRecursiveHealthChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DoguRecursiveHealthChecker) CheckDependenciesRecursive

func (_m *DoguRecursiveHealthChecker) CheckDependenciesRecursive(ctx context.Context, fromDogu *core.Dogu, currentK8sNamespace string) error

CheckDependenciesRecursive provides a mock function with given fields: ctx, fromDogu, currentK8sNamespace

type DoguRegistrator

type DoguRegistrator struct {
	mock.Mock
}

DoguRegistrator is an autogenerated mock type for the DoguRegistrator type

func NewDoguRegistrator

func NewDoguRegistrator(t mockConstructorTestingTNewDoguRegistrator) *DoguRegistrator

NewDoguRegistrator creates a new instance of DoguRegistrator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DoguRegistrator) RegisterDoguVersion

func (_m *DoguRegistrator) RegisterDoguVersion(dogu *core.Dogu) error

RegisterDoguVersion provides a mock function with given fields: dogu

func (*DoguRegistrator) RegisterNewDogu

func (_m *DoguRegistrator) RegisterNewDogu(ctx context.Context, doguResource *v1.Dogu, dogu *core.Dogu) error

RegisterNewDogu provides a mock function with given fields: ctx, doguResource, dogu

func (*DoguRegistrator) UnregisterDogu

func (_m *DoguRegistrator) UnregisterDogu(dogu string) error

UnregisterDogu provides a mock function with given fields: dogu

type DoguResourceGenerator

type DoguResourceGenerator struct {
	mock.Mock
}

DoguResourceGenerator is an autogenerated mock type for the DoguResourceGenerator type

func NewDoguResourceGenerator

func NewDoguResourceGenerator(t mockConstructorTestingTNewDoguResourceGenerator) *DoguResourceGenerator

NewDoguResourceGenerator creates a new instance of DoguResourceGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DoguResourceGenerator) CreateDoguDeployment

func (_m *DoguResourceGenerator) CreateDoguDeployment(doguResource *v1.Dogu, dogu *core.Dogu) (*appsv1.Deployment, error)

CreateDoguDeployment provides a mock function with given fields: doguResource, dogu

func (*DoguResourceGenerator) CreateDoguExposedServices

func (_m *DoguResourceGenerator) CreateDoguExposedServices(doguResource *v1.Dogu, dogu *core.Dogu) ([]*corev1.Service, error)

CreateDoguExposedServices provides a mock function with given fields: doguResource, dogu

func (*DoguResourceGenerator) CreateDoguPVC

func (_m *DoguResourceGenerator) CreateDoguPVC(doguResource *v1.Dogu) (*corev1.PersistentVolumeClaim, error)

CreateDoguPVC provides a mock function with given fields: doguResource

func (*DoguResourceGenerator) CreateDoguService

func (_m *DoguResourceGenerator) CreateDoguService(doguResource *v1.Dogu, imageConfig *pkgv1.ConfigFile) (*corev1.Service, error)

CreateDoguService provides a mock function with given fields: doguResource, imageConfig

func (*DoguResourceGenerator) CreateReservedPVC

func (_m *DoguResourceGenerator) CreateReservedPVC(doguResource *v1.Dogu) (*corev1.PersistentVolumeClaim, error)

CreateReservedPVC provides a mock function with given fields: doguResource

type DoguSecretHandler

type DoguSecretHandler struct {
	mock.Mock
}

DoguSecretHandler is an autogenerated mock type for the DoguSecretHandler type

func NewDoguSecretHandler

func NewDoguSecretHandler(t mockConstructorTestingTNewDoguSecretHandler) *DoguSecretHandler

NewDoguSecretHandler creates a new instance of DoguSecretHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DoguSecretHandler) WriteDoguSecretsToRegistry

func (_m *DoguSecretHandler) WriteDoguSecretsToRegistry(ctx context.Context, doguResource *v1.Dogu) error

WriteDoguSecretsToRegistry provides a mock function with given fields: ctx, doguResource

type ExecPod

type ExecPod struct {
	mock.Mock
}

ExecPod is an autogenerated mock type for the ExecPod type

func NewExecPod

func NewExecPod(t mockConstructorTestingTNewExecPod) *ExecPod

NewExecPod creates a new instance of ExecPod. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExecPod) Create

func (_m *ExecPod) Create(ctx context.Context) error

Create provides a mock function with given fields: ctx

func (*ExecPod) Delete

func (_m *ExecPod) Delete(ctx context.Context) error

Delete provides a mock function with given fields: ctx

func (*ExecPod) Exec

func (_m *ExecPod) Exec(ctx context.Context, cmd internal.ShellCommand) (string, error)

Exec provides a mock function with given fields: ctx, cmd

func (*ExecPod) ObjectKey

func (_m *ExecPod) ObjectKey() *types.NamespacedName

ObjectKey provides a mock function with given fields:

func (*ExecPod) PodName

func (_m *ExecPod) PodName() string

PodName provides a mock function with given fields:

type ExecPodFactory

type ExecPodFactory struct {
	mock.Mock
}

ExecPodFactory is an autogenerated mock type for the ExecPodFactory type

func NewExecPodFactory

func NewExecPodFactory(t mockConstructorTestingTNewExecPodFactory) *ExecPodFactory

NewExecPodFactory creates a new instance of ExecPodFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExecPodFactory) NewExecPod

func (_m *ExecPodFactory) NewExecPod(execPodFactoryMode internal.ExecPodVolumeMode, doguResource *v1.Dogu, dogu *core.Dogu) (internal.ExecPod, error)

NewExecPod provides a mock function with given fields: execPodFactoryMode, doguResource, dogu

type FileExtractor

type FileExtractor struct {
	mock.Mock
}

FileExtractor is an autogenerated mock type for the FileExtractor type

func NewFileExtractor

func NewFileExtractor(t mockConstructorTestingTNewFileExtractor) *FileExtractor

NewFileExtractor creates a new instance of FileExtractor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FileExtractor) ExtractK8sResourcesFromContainer

func (_m *FileExtractor) ExtractK8sResourcesFromContainer(ctx context.Context, k8sExecPod internal.ExecPod) (map[string]string, error)

ExtractK8sResourcesFromContainer provides a mock function with given fields: ctx, k8sExecPod

type ImageRegistry

type ImageRegistry struct {
	mock.Mock
}

ImageRegistry is an autogenerated mock type for the ImageRegistry type

func NewImageRegistry

func NewImageRegistry(t mockConstructorTestingTNewImageRegistry) *ImageRegistry

NewImageRegistry creates a new instance of ImageRegistry. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ImageRegistry) PullImageConfig

func (_m *ImageRegistry) PullImageConfig(ctx context.Context, image string) (*v1.ConfigFile, error)

PullImageConfig provides a mock function with given fields: ctx, image

type InstallManager

type InstallManager struct {
	mock.Mock
}

InstallManager is an autogenerated mock type for the InstallManager type

func NewInstallManager

func NewInstallManager(t mockConstructorTestingTNewInstallManager) *InstallManager

NewInstallManager creates a new instance of InstallManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*InstallManager) Install

func (_m *InstallManager) Install(ctx context.Context, doguResource *v1.Dogu) error

Install provides a mock function with given fields: ctx, doguResource

type LimitPatcher

type LimitPatcher struct {
	mock.Mock
}

LimitPatcher is an autogenerated mock type for the LimitPatcher type

func NewLimitPatcher

func NewLimitPatcher(t mockConstructorTestingTNewLimitPatcher) *LimitPatcher

NewLimitPatcher creates a new instance of LimitPatcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*LimitPatcher) PatchDeployment

func (_m *LimitPatcher) PatchDeployment(deployment *v1.Deployment, limits internal.DoguLimits) error

PatchDeployment provides a mock function with given fields: deployment, limits

func (*LimitPatcher) RetrievePodLimits

func (_m *LimitPatcher) RetrievePodLimits(doguResource *apiv1.Dogu) (internal.DoguLimits, error)

RetrievePodLimits provides a mock function with given fields: doguResource

type LocalDoguFetcher

type LocalDoguFetcher struct {
	mock.Mock
}

LocalDoguFetcher is an autogenerated mock type for the LocalDoguFetcher type

func NewLocalDoguFetcher

func NewLocalDoguFetcher(t mockConstructorTestingTNewLocalDoguFetcher) *LocalDoguFetcher

NewLocalDoguFetcher creates a new instance of LocalDoguFetcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*LocalDoguFetcher) FetchInstalled

func (_m *LocalDoguFetcher) FetchInstalled(doguName string) (*core.Dogu, error)

FetchInstalled provides a mock function with given fields: doguName

type PremisesChecker

type PremisesChecker struct {
	mock.Mock
}

PremisesChecker is an autogenerated mock type for the PremisesChecker type

func NewPremisesChecker

func NewPremisesChecker(t mockConstructorTestingTNewPremisesChecker) *PremisesChecker

NewPremisesChecker creates a new instance of PremisesChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PremisesChecker) Check

func (_m *PremisesChecker) Check(ctx context.Context, toDoguResource *v1.Dogu, fromDogu *core.Dogu, toDogu *core.Dogu) error

Check provides a mock function with given fields: ctx, toDoguResource, fromDogu, toDogu

type ResourceDoguFetcher

type ResourceDoguFetcher struct {
	mock.Mock
}

ResourceDoguFetcher is an autogenerated mock type for the ResourceDoguFetcher type

func NewResourceDoguFetcher

func NewResourceDoguFetcher(t mockConstructorTestingTNewResourceDoguFetcher) *ResourceDoguFetcher

NewResourceDoguFetcher creates a new instance of ResourceDoguFetcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ResourceDoguFetcher) FetchWithResource

func (_m *ResourceDoguFetcher) FetchWithResource(ctx context.Context, doguResource *v1.Dogu) (*core.Dogu, *v1.DevelopmentDoguMap, error)

FetchWithResource provides a mock function with given fields: ctx, doguResource

type ResourceUpserter

type ResourceUpserter struct {
	mock.Mock
}

ResourceUpserter is an autogenerated mock type for the ResourceUpserter type

func NewResourceUpserter

func NewResourceUpserter(t mockConstructorTestingTNewResourceUpserter) *ResourceUpserter

NewResourceUpserter creates a new instance of ResourceUpserter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ResourceUpserter) UpsertDoguDeployment

func (_m *ResourceUpserter) UpsertDoguDeployment(ctx context.Context, doguResource *v1.Dogu, dogu *core.Dogu, deploymentPatch func(*appsv1.Deployment)) (*appsv1.Deployment, error)

UpsertDoguDeployment provides a mock function with given fields: ctx, doguResource, dogu, deploymentPatch

func (*ResourceUpserter) UpsertDoguExposedServices

func (_m *ResourceUpserter) UpsertDoguExposedServices(ctx context.Context, doguResource *v1.Dogu, dogu *core.Dogu) ([]*corev1.Service, error)

UpsertDoguExposedServices provides a mock function with given fields: ctx, doguResource, dogu

func (*ResourceUpserter) UpsertDoguPVCs

func (_m *ResourceUpserter) UpsertDoguPVCs(ctx context.Context, doguResource *v1.Dogu, dogu *core.Dogu) (*corev1.PersistentVolumeClaim, error)

UpsertDoguPVCs provides a mock function with given fields: ctx, doguResource, dogu

func (*ResourceUpserter) UpsertDoguService

func (_m *ResourceUpserter) UpsertDoguService(ctx context.Context, doguResource *v1.Dogu, image *pkgv1.ConfigFile) (*corev1.Service, error)

UpsertDoguService provides a mock function with given fields: ctx, doguResource, image

type ResourceValidator

type ResourceValidator struct {
	mock.Mock
}

ResourceValidator is an autogenerated mock type for the ResourceValidator type

func NewResourceValidator

func NewResourceValidator(t mockConstructorTestingTNewResourceValidator) *ResourceValidator

NewResourceValidator creates a new instance of ResourceValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ResourceValidator) Validate

func (_m *ResourceValidator) Validate(ctx context.Context, doguName string, obj client.Object) error

Validate provides a mock function with given fields: ctx, doguName, obj

type SecretResourceGenerator

type SecretResourceGenerator struct {
	mock.Mock
}

SecretResourceGenerator is an autogenerated mock type for the SecretResourceGenerator type

func NewSecretResourceGenerator

func NewSecretResourceGenerator(t mockConstructorTestingTNewSecretResourceGenerator) *SecretResourceGenerator

NewSecretResourceGenerator creates a new instance of SecretResourceGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SecretResourceGenerator) CreateDoguSecret

func (_m *SecretResourceGenerator) CreateDoguSecret(doguResource *v1.Dogu, stringData map[string]string) (*corev1.Secret, error)

CreateDoguSecret provides a mock function with given fields: doguResource, stringData

type ServiceAccountCreator

type ServiceAccountCreator struct {
	mock.Mock
}

ServiceAccountCreator is an autogenerated mock type for the ServiceAccountCreator type

func NewServiceAccountCreator

func NewServiceAccountCreator(t mockConstructorTestingTNewServiceAccountCreator) *ServiceAccountCreator

NewServiceAccountCreator creates a new instance of ServiceAccountCreator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ServiceAccountCreator) CreateAll

func (_m *ServiceAccountCreator) CreateAll(ctx context.Context, dogu *core.Dogu) error

CreateAll provides a mock function with given fields: ctx, dogu

type ServiceAccountRemover

type ServiceAccountRemover struct {
	mock.Mock
}

ServiceAccountRemover is an autogenerated mock type for the ServiceAccountRemover type

func NewServiceAccountRemover

func NewServiceAccountRemover(t mockConstructorTestingTNewServiceAccountRemover) *ServiceAccountRemover

NewServiceAccountRemover creates a new instance of ServiceAccountRemover. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ServiceAccountRemover) RemoveAll

func (_m *ServiceAccountRemover) RemoveAll(ctx context.Context, dogu *core.Dogu) error

RemoveAll provides a mock function with given fields: ctx, dogu

type ShellCommand

type ShellCommand struct {
	mock.Mock
}

ShellCommand is an autogenerated mock type for the ShellCommand type

func NewShellCommand

func NewShellCommand(t mockConstructorTestingTNewShellCommand) *ShellCommand

NewShellCommand creates a new instance of ShellCommand. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ShellCommand) CommandWithArgs

func (_m *ShellCommand) CommandWithArgs() []string

CommandWithArgs provides a mock function with given fields:

type SuffixGenerator

type SuffixGenerator struct {
	mock.Mock
}

SuffixGenerator is an autogenerated mock type for the SuffixGenerator type

func NewSuffixGenerator

func NewSuffixGenerator(t mockConstructorTestingTNewSuffixGenerator) *SuffixGenerator

NewSuffixGenerator creates a new instance of SuffixGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SuffixGenerator) String

func (_m *SuffixGenerator) String(length int) string

String provides a mock function with given fields: length

type SupportManager

type SupportManager struct {
	mock.Mock
}

SupportManager is an autogenerated mock type for the SupportManager type

func NewSupportManager

func NewSupportManager(t mockConstructorTestingTNewSupportManager) *SupportManager

NewSupportManager creates a new instance of SupportManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SupportManager) HandleSupportMode

func (_m *SupportManager) HandleSupportMode(ctx context.Context, doguResource *v1.Dogu) (bool, error)

HandleSupportMode provides a mock function with given fields: ctx, doguResource

type UpgradeExecutor

type UpgradeExecutor struct {
	mock.Mock
}

UpgradeExecutor is an autogenerated mock type for the UpgradeExecutor type

func NewUpgradeExecutor

func NewUpgradeExecutor(t mockConstructorTestingTNewUpgradeExecutor) *UpgradeExecutor

NewUpgradeExecutor creates a new instance of UpgradeExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*UpgradeExecutor) Upgrade

func (_m *UpgradeExecutor) Upgrade(ctx context.Context, toDoguResource *v1.Dogu, fromDogu *core.Dogu, toDogu *core.Dogu) error

Upgrade provides a mock function with given fields: ctx, toDoguResource, fromDogu, toDogu

type UpgradeManager

type UpgradeManager struct {
	mock.Mock
}

UpgradeManager is an autogenerated mock type for the UpgradeManager type

func NewUpgradeManager

func NewUpgradeManager(t mockConstructorTestingTNewUpgradeManager) *UpgradeManager

NewUpgradeManager creates a new instance of UpgradeManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*UpgradeManager) Upgrade

func (_m *UpgradeManager) Upgrade(ctx context.Context, doguResource *v1.Dogu) error

Upgrade provides a mock function with given fields: ctx, doguResource

type VolumeManager added in v0.19.0

type VolumeManager struct {
	mock.Mock
}

VolumeManager is an autogenerated mock type for the VolumeManager type

func NewVolumeManager added in v0.19.0

func NewVolumeManager(t mockConstructorTestingTNewVolumeManager) *VolumeManager

NewVolumeManager creates a new instance of VolumeManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*VolumeManager) SetDoguDataVolumeSize added in v0.19.0

func (_m *VolumeManager) SetDoguDataVolumeSize(ctx context.Context, doguResource *v1.Dogu) error

SetDoguDataVolumeSize provides a mock function with given fields: ctx, doguResource

Directories

Path Synopsis
Package external implements mocks that implement 3rd party interfaces, t.
Package external implements mocks that implement 3rd party interfaces, t.

Jump to

Keyboard shortcuts

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