automock

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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 ComponentListProvider

type ComponentListProvider struct {
	mock.Mock
}

ComponentListProvider is an autogenerated mock type for the ComponentListProvider type

func (*ComponentListProvider) AllComponents

func (_m *ComponentListProvider) AllComponents(kymaVersion internal.RuntimeVersionData) ([]v1alpha1.KymaComponent, error)

AllComponents provides a mock function with given fields: kymaVersion

type ComponentsDisabler

type ComponentsDisabler struct {
	mock.Mock
}

ComponentsDisabler is an autogenerated mock type for the ComponentsDisabler type

func (*ComponentsDisabler) DisableComponents

DisableComponents provides a mock function with given fields: components

type CreatorForPlan

type CreatorForPlan struct {
	mock.Mock
}

CreatorForPlan is an autogenerated mock type for the CreatorForPlan type

func NewCreatorForPlan

func NewCreatorForPlan(t mockConstructorTestingTNewCreatorForPlan) *CreatorForPlan

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

func (*CreatorForPlan) CreateProvisionInput

CreateProvisionInput provides a mock function with given fields: parameters, version

func (*CreatorForPlan) CreateUpgradeInput

CreateUpgradeInput provides a mock function with given fields: parameters, version

func (*CreatorForPlan) CreateUpgradeShootInput

CreateUpgradeShootInput provides a mock function with given fields: parameters, version

func (*CreatorForPlan) GetPlanDefaults

func (_m *CreatorForPlan) GetPlanDefaults(planID string, platformProvider internal.CloudProvider, parametersProvider *internal.CloudProvider) (*gqlschema.ClusterConfigInput, error)

GetPlanDefaults provides a mock function with given fields: planID, platformProvider, parametersProvider

func (*CreatorForPlan) IsPlanSupport

func (_m *CreatorForPlan) IsPlanSupport(planID string) bool

IsPlanSupport provides a mock function with given fields: planID

type DisabledComponentsProvider

type DisabledComponentsProvider struct {
	mock.Mock
}

DisabledComponentsProvider is an autogenerated mock type for the DisabledComponentsProvider type

func (*DisabledComponentsProvider) DisabledComponentsPerPlan

func (_m *DisabledComponentsProvider) DisabledComponentsPerPlan(planID string) (map[string]struct{}, error)

DisabledComponentsPerPlan provides a mock function with given fields: planID

func (*DisabledComponentsProvider) DisabledForAll

func (_m *DisabledComponentsProvider) DisabledForAll() map[string]struct{}

DisabledForAll provides a mock function with given fields:

type HyperscalerInputProvider

type HyperscalerInputProvider struct {
	mock.Mock
}

HyperscalerInputProvider is an autogenerated mock type for the HyperscalerInputProvider type

func (*HyperscalerInputProvider) ApplyParameters

ApplyParameters provides a mock function with given fields: _a0, params

func (*HyperscalerInputProvider) Defaults

Defaults provides a mock function with given fields:

func (*HyperscalerInputProvider) Profile

Profile provides a mock function with given fields:

func (*HyperscalerInputProvider) Provider

Provider provides a mock function with given fields:

type OptionalComponentService

type OptionalComponentService struct {
	mock.Mock
}

OptionalComponentService is an autogenerated mock type for the OptionalComponentService type

func (*OptionalComponentService) ComputeComponentsToDisable

func (_m *OptionalComponentService) ComputeComponentsToDisable(optComponentsToKeep []string) []string

ComputeComponentsToDisable provides a mock function with given fields: optComponentsToKeep

func (*OptionalComponentService) ExecuteDisablers

ExecuteDisablers provides a mock function with given fields: components, names

type ProvisionerInputCreator

type ProvisionerInputCreator struct {
	mock.Mock
}

ProvisionerInputCreator is an autogenerated mock type for the ProvisionerInputCreator type

func (*ProvisionerInputCreator) AppendGlobalOverrides

func (_m *ProvisionerInputCreator) AppendGlobalOverrides(overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator

AppendGlobalOverrides provides a mock function with given fields: overrides

func (*ProvisionerInputCreator) AppendOverrides

func (_m *ProvisionerInputCreator) AppendOverrides(component string, overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator

AppendOverrides provides a mock function with given fields: component, overrides

func (*ProvisionerInputCreator) CreateProvisionRuntimeInput

func (_m *ProvisionerInputCreator) CreateProvisionRuntimeInput() (gqlschema.ProvisionRuntimeInput, error)

CreateProvisionRuntimeInput provides a mock function with given fields:

func (*ProvisionerInputCreator) CreateUpgradeRuntimeInput

func (_m *ProvisionerInputCreator) CreateUpgradeRuntimeInput() (gqlschema.UpgradeRuntimeInput, error)

CreateUpgradeRuntimeInput provides a mock function with given fields:

func (*ProvisionerInputCreator) CreateUpgradeShootInput

func (_m *ProvisionerInputCreator) CreateUpgradeShootInput() (gqlschema.UpgradeShootInput, error)

CreateUpgradeShootInput provides a mock function with given fields:

func (*ProvisionerInputCreator) EnableOptionalComponent

func (_m *ProvisionerInputCreator) EnableOptionalComponent(componentName string) internal.ProvisionerInputCreator

EnableOptionalComponent provides a mock function with given fields: componentName

func (*ProvisionerInputCreator) SetLabel

SetLabel provides a mock function with given fields: key, value

func (*ProvisionerInputCreator) SetOverrides

SetOverrides provides a mock function with given fields: component, overrides

func (*ProvisionerInputCreator) SetProvisioningParameters

SetProvisioningParameters provides a mock function with given fields: params

func (*ProvisionerInputCreator) SetShootName

SetShootName provides a mock function with given fields: _a0

type RuntimeOverridesAppender

type RuntimeOverridesAppender struct {
	mock.Mock
}

RuntimeOverridesAppender is an autogenerated mock type for the RuntimeOverridesAppender type

func (*RuntimeOverridesAppender) Append

func (_m *RuntimeOverridesAppender) Append(input runtimeoverrides.InputAppender, planID string, kymaVersion string) error

Append provides a mock function with given fields: input, planID, kymaVersion

type RuntimeVersionConfiguratorForUpgrade

type RuntimeVersionConfiguratorForUpgrade struct {
	mock.Mock
}

RuntimeVersionConfiguratorForUpgrade is an autogenerated mock type for the RuntimeVersionConfiguratorForUpgrade type

func NewRuntimeVersionConfiguratorForUpgrade

func NewRuntimeVersionConfiguratorForUpgrade(t mockConstructorTestingTNewRuntimeVersionConfiguratorForUpgrade) *RuntimeVersionConfiguratorForUpgrade

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

func (*RuntimeVersionConfiguratorForUpgrade) ForUpgrade

ForUpgrade provides a mock function with given fields: op

type Step

type Step struct {
	mock.Mock
}

Step is an autogenerated mock type for the Step type

func (*Step) Name

func (_m *Step) Name() string

Name provides a mock function with given fields:

func (*Step) Run

Run provides a mock function with given fields: operation, logger

type StepCondition

type StepCondition struct {
	mock.Mock
}

StepCondition is an autogenerated mock type for the StepCondition type

func (*StepCondition) Execute

func (_m *StepCondition) Execute(operation internal.UpgradeKymaOperation) bool

Execute provides a mock function with given fields: operation

Jump to

Keyboard shortcuts

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