resolve

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MissingRequiredValue = "MISSING_REQUIRED_VALUE"

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfigRenderer

type APIConfigRenderer struct {
	Logger         log.Logger
	Viper          *viper.Viper
	BuilderBuilder *templates.BuilderBuilder
}

APIConfigRenderer resolves config values via API

func NewRenderer

func NewRenderer(
	logger log.Logger,
	v *viper.Viper,
	builderBuilder *templates.BuilderBuilder,
) *APIConfigRenderer

func (*APIConfigRenderer) ResolveConfig

func (r *APIConfigRenderer) ResolveConfig(
	ctx context.Context,
	release *api.Release,
	savedState map[string]interface{},
	liveValues map[string]interface{},
	firstPass bool,
) ([]libyaml.ConfigGroup, error)

ResolveConfig will get all the config values specified in the spec, in JSON format

type ValidationError

type ValidationError struct {
	Message   string `json:"message"`
	Name      string `json:"name"`
	ErrorCode string `json:"error_code"`
}

func ValidateConfig

func ValidateConfig(
	resolvedConfig []libyaml.ConfigGroup,
) []*ValidationError

ValidateConfig validates a list of resolved config items

Directories

Path Synopsis
test-cases
api

Jump to

Keyboard shortcuts

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