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: 11 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.12.0

type Applier struct {
	mock.Mock
}

Applier is an autogenerated mock type for the Applier type

func NewApplier added in v0.12.0

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

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

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

type DoguResourceGenerator added in v0.12.0

type DoguResourceGenerator struct {
	mock.Mock
}

DoguResourceGenerator is an autogenerated mock type for the DoguResourceGenerator type

func NewDoguResourceGenerator added in v0.12.0

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

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

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

func (*DoguResourceGenerator) CreateDoguExposedServices added in v0.12.0

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

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

CreateDoguPVC provides a mock function with given fields: doguResource

func (*DoguResourceGenerator) CreateDoguService added in v0.12.0

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

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

CreateReservedPVC provides a mock function with given fields: doguResource

type LimitPatcher

type LimitPatcher struct {
	mock.Mock
}

LimitPatcher is an autogenerated mock type for the LimitPatcher type

func NewLimitPatcher added in v0.12.0

func NewLimitPatcher(t newLimitPatcherT) *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 limit.DoguLimits) error

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

func (*LimitPatcher) RetrievePodLimits

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

RetrieveMemoryLimits provides a mock function with given fields: doguResource

type ResourceValidatorMock added in v0.12.0

type ResourceValidatorMock struct {
	mock.Mock
}

ResourceValidatorMock is an autogenerated mock type for the ResourceValidatorMock type

func NewResourceValidator added in v0.12.0

func NewResourceValidator(t mockConstructorTestingTnewResourceValidator) *ResourceValidatorMock

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

func (*ResourceValidatorMock) Validate added in v0.12.0

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

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

Jump to

Keyboard shortcuts

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