resolve

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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