input

package
v0.0.0-...-6d4a0cd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0, Apache-2.0 Imports: 8 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 Config

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

type CreatorForPlan

type CreatorForPlan interface {
	IsPlanSupport(planID string) bool
	ForPlan(planID, kymaVersion string) (internal.ProvisionInputCreator, error)
}

func NewInputBuilderFactory

func NewInputBuilderFactory(optComponentsSvc OptionalComponentService, componentsListProvider ComponentListProvider, config Config, defaultKymaVersion string) (CreatorForPlan, error)

type HyperscalerInputProvider

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

type InputBuilderFactory

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

func (*InputBuilderFactory) ForPlan

func (f *InputBuilderFactory) ForPlan(planID, kymaVersion string) (internal.ProvisionInputCreator, error)

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.ProvisionInputCreator

AppendAppendGlobalOverrides appends overrides, the existing overrides are preserved.

func (*RuntimeInput) AppendOverrides

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

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

func (*RuntimeInput) Create

func (*RuntimeInput) SetLabel

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

func (*RuntimeInput) SetOverrides deprecated

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

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.ProvisioningParametersDTO) internal.ProvisionInputCreator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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