config

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigConverter

type ConfigConverter interface {
	ConvertToStruct(cfgString string) (internal.ConfigForPlan, error)
}

type ConfigMapConverter

type ConfigMapConverter struct{}

func NewConfigMapConverter

func NewConfigMapConverter() *ConfigMapConverter

func (*ConfigMapConverter) ConvertToStruct

func (c *ConfigMapConverter) ConvertToStruct(cfgString string) (internal.ConfigForPlan, error)

type ConfigMapKeysValidator

type ConfigMapKeysValidator struct{}

func NewConfigMapKeysValidator

func NewConfigMapKeysValidator() *ConfigMapKeysValidator

func (*ConfigMapKeysValidator) Validate

func (v *ConfigMapKeysValidator) Validate(cfgString string) error

type ConfigMapReader

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

func NewConfigMapReader

func NewConfigMapReader(ctx context.Context, k8sClient client.Client, logger logrus.FieldLogger, defaultKymaVersion string) *ConfigMapReader

func (*ConfigMapReader) Read

func (r *ConfigMapReader) Read(kymaVersion, planName string) (string, error)

type ConfigProvider

type ConfigProvider struct {
	Reader    ConfigReader
	Validator ConfigValidator
	Converter ConfigConverter
}

func NewConfigProvider

func NewConfigProvider(reader ConfigReader, validator ConfigValidator, converter ConfigConverter) *ConfigProvider

func (*ConfigProvider) ProvideForGivenVersionAndPlan

func (p *ConfigProvider) ProvideForGivenVersionAndPlan(kymaVersion, planName string) (*internal.ConfigForPlan, error)

type ConfigReader

type ConfigReader interface {
	Read(kymaVersion, planName string) (string, error)
}

type ConfigValidator

type ConfigValidator interface {
	Validate(cfgString string) error
}

Jump to

Keyboard shortcuts

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