input

package
v0.0.0-...-fb2c256 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0, Apache-2.0 Imports: 9 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 interface {
	AllComponents(kymaVersion string) ([]v1alpha1.KymaComponent, error)
}

type ComponentsDisabler

type ComponentsDisabler interface {
	DisableComponents(components internal.ComponentConfigurationInputList) (internal.ComponentConfigurationInputList, error)
}

type Config

type Config struct {
	URL                         string
	Timeout                     time.Duration `envconfig:"default=12h"`
	KubernetesVersion           string        `envconfig:"default=1.16.9"`
	DefaultGardenerShootPurpose string        `envconfig:"default=development"`
	MachineImage                string        `envconfig:"optional"`
	MachineImageVersion         string        `envconfig:"optional"`
}

type CreatorForPlan

type CreatorForPlan interface {
	IsPlanSupport(planID string) bool
	CreateProvisionInput(parameters internal.ProvisioningParameters) (internal.ProvisionerInputCreator, error)
	CreateUpgradeInput(parameters internal.ProvisioningParameters) (internal.ProvisionerInputCreator, error)
}

func NewInputBuilderFactory

func NewInputBuilderFactory(optComponentsSvc OptionalComponentService, disabledComponentsProvider DisabledComponentsProvider, componentsListProvider ComponentListProvider, config Config,
	defaultKymaVersion string, trialPlatformRegionMapping map[string]string) (CreatorForPlan, error)

type DisabledComponentsProvider

type DisabledComponentsProvider interface {
	DisabledComponentsPerPlan(planID string) (map[string]struct{}, error)
	DisabledForAll() map[string]struct{}
}

type HyperscalerInputProvider

type HyperscalerInputProvider interface {
	Defaults() *gqlschema.ClusterConfigInput
	ApplyParameters(input *gqlschema.ClusterConfigInput, params internal.ProvisioningParameters)
}

type InputBuilderFactory

type InputBuilderFactory struct {
	// contains filtered or unexported fields
}

func (*InputBuilderFactory) CreateProvisionInput

func (*InputBuilderFactory) CreateUpgradeInput

func (*InputBuilderFactory) IsPlanSupport

func (f *InputBuilderFactory) IsPlanSupport(planID string) bool

type OptionalComponentService

type OptionalComponentService interface {
	ExecuteDisablers(components internal.ComponentConfigurationInputList, names ...string) (internal.ComponentConfigurationInputList, error)
	ComputeComponentsToDisable(optComponentsToKeep []string) []string
}

type RuntimeInput

type RuntimeInput struct {
	// contains filtered or unexported fields
}

func (*RuntimeInput) AppendGlobalOverrides

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

AppendAppendGlobalOverrides appends overrides, the existing overrides are preserved.

func (*RuntimeInput) AppendOverrides

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

AppendOverrides appends overrides for the given components, the existing overrides are preserved.

func (*RuntimeInput) CreateProvisionRuntimeInput

func (r *RuntimeInput) CreateProvisionRuntimeInput() (gqlschema.ProvisionRuntimeInput, error)

func (*RuntimeInput) CreateUpgradeRuntimeInput

func (r *RuntimeInput) CreateUpgradeRuntimeInput() (gqlschema.UpgradeRuntimeInput, error)

func (*RuntimeInput) EnableOptionalComponent

func (r *RuntimeInput) EnableOptionalComponent(componentName string) internal.ProvisionerInputCreator

func (*RuntimeInput) SetLabel

func (r *RuntimeInput) SetLabel(key, value string) internal.ProvisionerInputCreator

func (*RuntimeInput) SetOverrides deprecated

func (r *RuntimeInput) SetOverrides(component string, overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator

AppendOverrides sets the overrides for the given component and discard the previous ones.

Deprecated: use AppendOverrides

func (*RuntimeInput) SetProvisioningParameters

func (r *RuntimeInput) SetProvisioningParameters(params internal.ProvisioningParameters) internal.ProvisionerInputCreator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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