eval

package
v0.0.0-...-ac8ef6d Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

This package exports functions for evaluating packages; that is, for taking a specification of a package, and producing the YAML outputs.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("not implemented")

Functions

func Eval

func Eval(s spec.Spec) ([]*yaml.RNode, error)

Eval takes a spec and runs it, to produce the YAML output. The output is in a kyaml/kio collection, so that it can be output to disk, further transformed, or merged with other output.

func ProcureChart

func ProcureChart(repoAndChartURL, version string) (*chart.Chart, error)

Types

type ResourceList

type ResourceList struct {
	Kind           string      `yaml:"kind"`
	FunctionConfig interface{} `yaml:"functionConfig"`
	// this will always be empty, but what the heck.
	Items []*yaml.RNode `yaml:"items"`
}

the YAML encoder in kyaml/yaml is an alias for pkg.in/yaml.v3 and does not use json struct tags; the ResourceList type in kyaml/.../framework doesn't have json _or_ yaml tags.

Jump to

Keyboard shortcuts

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