mocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 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 added in v0.9.0

type Applier struct {
	mock.Mock
}

Applier is an autogenerated mock type for the Applier type

func (*Applier) ApplyWithOwner added in v0.9.0

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 CommandExecutor added in v0.14.0

type CommandExecutor struct {
	mock.Mock
}

CommandExecutor is an autogenerated mock type for the CommandExecutor type

func NewCommandExecutor added in v0.14.0

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 added in v0.14.0

func (_m *CommandExecutor) ExecCommandForDogu(ctx context.Context, resource *v1.Dogu, command *exec.ShellCommand, expectedStatus exec.PodStatus) (*bytes.Buffer, error)

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

func (*CommandExecutor) ExecCommandForPod added in v0.14.0

func (_m *CommandExecutor) ExecCommandForPod(ctx context.Context, pod *corev1.Pod, command *exec.ShellCommand, expectedStatus exec.PodStatus) (*bytes.Buffer, error)

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

type DeleteManager added in v0.9.0

type DeleteManager struct {
	mock.Mock
}

DeleteManager is an autogenerated mock type for the DeleteManager type

func NewDeleteManager added in v0.12.0

func NewDeleteManager(t newDeleteManagerT) *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 added in v0.9.0

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

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

type DependencyValidator added in v0.3.0

type DependencyValidator struct {
	mock.Mock
}

DependencyValidator is an autogenerated mock type for the DependencyValidator type

func (*DependencyValidator) ValidateDependencies added in v0.3.0

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

ValidateDependencies provides a mock function with given fields: dogu

type DoguRegistrator

type DoguRegistrator struct {
	mock.Mock
}

DoguRegistrator is an autogenerated mock type for the DoguRegistrator type

func (*DoguRegistrator) RegisterDoguVersion added in v0.12.0

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

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

func (*DoguRegistrator) RegisterNewDogu added in v0.12.0

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

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

func (*DoguRegistrator) UnregisterDogu added in v0.2.0

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

UnRegisterDogu provides a mock function with given fields: dogu

type DoguRegistry

type DoguRegistry struct {
	mock.Mock
}

DoguRegistry is an autogenerated mock type for the DoguRegistry type

func (*DoguRegistry) GetDogu

func (_m *DoguRegistry) GetDogu(_a0 *v1.Dogu) (*core.Dogu, error)

GetDogu provides a mock function with given fields: _a0

type DoguSecretsHandler added in v0.5.0

type DoguSecretsHandler struct {
	mock.Mock
}

DoguSecretsHandler is an autogenerated mock type for the DoguSecretsHandler type

func (*DoguSecretsHandler) WriteDoguSecretsToRegistry added in v0.5.0

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

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

type EventRecorder added in v0.12.0

type EventRecorder struct {
	mock.Mock
}

EventRecorder is an autogenerated mock type for the EventRecorder type

func NewEventRecorder added in v0.12.0

func NewEventRecorder(t mockConstructorTestingTNewEventRecorder) *EventRecorder

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

func (*EventRecorder) AnnotatedEventf added in v0.12.0

func (_m *EventRecorder) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype string, reason string, messageFmt string, args ...interface{})

AnnotatedEventf provides a mock function with given fields: object, annotations, eventtype, reason, messageFmt, args

func (*EventRecorder) Event added in v0.12.0

func (_m *EventRecorder) Event(object runtime.Object, eventtype string, reason string, message string)

Event provides a mock function with given fields: object, eventtype, reason, message

func (*EventRecorder) Eventf added in v0.12.0

func (_m *EventRecorder) Eventf(object runtime.Object, eventtype string, reason string, messageFmt string, args ...interface{})

Eventf provides a mock function with given fields: object, eventtype, reason, messageFmt, args

type ExecPodFactory added in v0.14.0

type ExecPodFactory struct {
	mock.Mock
}

ExecPodFactory is an autogenerated mock type for the ExecPodFactory type

func NewExecPodFactory added in v0.14.0

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 added in v0.14.0

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

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

type FileExtractor added in v0.9.0

type FileExtractor struct {
	mock.Mock
}

FileExtractor is an autogenerated mock type for the FileExtractor type

func NewFileExtractor added in v0.14.0

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 added in v0.9.0

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

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

type HttpClient

type HttpClient struct {
	mock.Mock
}

HttpClient is an autogenerated mock type for the HttpClient type

func (*HttpClient) Do

func (_m *HttpClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

type Image added in v0.7.0

type Image struct {
	mock.Mock
}

Image is an autogenerated mock type for the Image type

func (*Image) ConfigFile added in v0.7.0

func (_m *Image) ConfigFile() (*v1.ConfigFile, error)

ConfigFile provides a mock function with given fields:

func (*Image) ConfigName added in v0.7.0

func (_m *Image) ConfigName() (v1.Hash, error)

ConfigName provides a mock function with given fields:

func (*Image) Digest added in v0.7.0

func (_m *Image) Digest() (v1.Hash, error)

Digest provides a mock function with given fields:

func (*Image) LayerByDiffID added in v0.7.0

func (_m *Image) LayerByDiffID(_a0 v1.Hash) (v1.Layer, error)

LayerByDiffID provides a mock function with given fields: _a0

func (*Image) LayerByDigest added in v0.7.0

func (_m *Image) LayerByDigest(_a0 v1.Hash) (v1.Layer, error)

LayerByDigest provides a mock function with given fields: _a0

func (*Image) Layers added in v0.7.0

func (_m *Image) Layers() ([]v1.Layer, error)

Layers provides a mock function with given fields:

func (*Image) Manifest added in v0.7.0

func (_m *Image) Manifest() (*v1.Manifest, error)

Manifest provides a mock function with given fields:

func (*Image) MediaType added in v0.7.0

func (_m *Image) MediaType() (types.MediaType, error)

MediaType provides a mock function with given fields:

func (*Image) RawConfigFile added in v0.7.0

func (_m *Image) RawConfigFile() ([]byte, error)

RawConfigFile provides a mock function with given fields:

func (*Image) RawManifest added in v0.7.0

func (_m *Image) RawManifest() ([]byte, error)

RawManifest provides a mock function with given fields:

func (*Image) Size added in v0.7.0

func (_m *Image) Size() (int64, error)

Size provides a mock function with given fields:

type ImageRegistry

type ImageRegistry struct {
	mock.Mock
}

ImageRegistry is an autogenerated mock type for the ImageRegistry type

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 added in v0.9.0

type InstallManager struct {
	mock.Mock
}

InstallManager is an autogenerated mock type for the InstallManager type

func NewInstallManager added in v0.12.0

func NewInstallManager(t newInstallManagerT) *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 added in v0.9.0

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

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

type LocalDoguFetcher added in v0.12.0

type LocalDoguFetcher struct {
	mock.Mock
}

LocalDoguFetcher is an autogenerated mock type for the LocalDoguFetcher type

func NewLocalDoguFetcher added in v0.12.0

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 added in v0.12.0

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

FetchInstalled provides a mock function with given fields: doguName

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func (*Manager) Delete

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

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

func (*Manager) Install

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

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

func (*Manager) Upgrade

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

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

type PremisesChecker added in v0.12.0

type PremisesChecker struct {
	mock.Mock
}

PremisesChecker is an autogenerated mock type for the PremisesChecker type

func NewPremisesChecker added in v0.12.0

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 added in v0.12.0

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 added in v0.12.0

type ResourceDoguFetcher struct {
	mock.Mock
}

ResourceDoguFetcher is an autogenerated mock type for the ResourceDoguFetcher type

func NewResourceDoguFetcher added in v0.12.0

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 added in v0.12.0

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 added in v0.12.0

type ResourceUpserter struct {
	mock.Mock
}

ResourceUpserter is an autogenerated mock type for the resourceUpserter type

func (*ResourceUpserter) ApplyDoguResource added in v0.12.0

func (_m *ResourceUpserter) ApplyDoguResource(ctx context.Context, doguResource *v1.Dogu, dogu *core.Dogu, image *pkgv1.ConfigFile, customDeployment *appsv1.Deployment) error

ApplyDoguResource provides a mock function with given fields: ctx, doguResource, dogu, image, customDeployment

type ServiceAccountCreator added in v0.3.0

type ServiceAccountCreator struct {
	mock.Mock
}

ServiceAccountCreator is an autogenerated mock type for the ServiceAccountCreator type

func NewServiceAccountCreator added in v0.14.0

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 added in v0.6.0

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

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

type ServiceAccountRemover added in v0.6.0

type ServiceAccountRemover struct {
	mock.Mock
}

ServiceAccountRemover is an autogenerated mock type for the ServiceAccountRemover type

func NewServiceAccountRemover added in v0.14.0

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 added in v0.6.0

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

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

type SupportManager added in v0.13.0

type SupportManager struct {
	mock.Mock
}

SupportManager is an autogenerated mock type for the SupportManager type

func (*SupportManager) HandleSupportMode added in v0.13.0

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

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

type UpgradeExecutor added in v0.12.0

type UpgradeExecutor struct {
	mock.Mock
}

UpgradeExecutor is an autogenerated mock type for the UpgradeExecutor type

func NewUpgradeExecutor added in v0.12.0

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 added in v0.12.0

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, toDogu

type UpgradeManager added in v0.12.0

type UpgradeManager struct {
	mock.Mock
}

UpgradeManager is an autogenerated mock type for the UpgradeManager type

func NewUpgradeManager added in v0.12.0

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 added in v0.12.0

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

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

Jump to

Keyboard shortcuts

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