cue

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	UsagePrefix = "+usage="
	ShortPrefix = "+short="
	// AliasPrefix is an alias of the name of a parameter element, in order to making it more friendly to Cli users
	AliasPrefix = "+alias="
)
View Source
const BaseTemplate = `

context: {
  name: string
  config?: [...{
    name: string
    value: string
  }]
}
`
View Source
const OutputFieldName = "output"

OutputFieldName is the name of the struct contains the CR data

Variables

This section is empty.

Functions

func Eval

func Eval(templatePath string, value map[string]interface{}) (*unstructured.Unstructured, error)

Eval evaluates the spec with the parameter values

func GetDefault

func GetDefault(val cue.Value) interface{}

func GetParameters

func GetParameters(templatePath string) ([]types.Parameter, error)

func RetrieveComments

func RetrieveComments(value cue.Value) (string, string, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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