Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Evaluate ¶
func Evaluate(filename string, source []byte, siblings []*File, extVars map[string]string) ([][]byte, error)
Evaluate takes Jsonnet source, evaluates it, and returns one or more YAML documents. The siblings parameter provides files available for Jsonnet import statements. The extVars parameter provides external variables accessible via std.extVar(). If the Jsonnet evaluates to a JSON array, each element becomes a separate YAML document.
func IsJsonnetFile ¶
IsJsonnetFile returns true if the filename has a .jsonnet extension.
func IsLibsonnetFile ¶
IsLibsonnetFile returns true if the filename has a .libsonnet extension.
Types ¶
Click to show internal directories.
Click to hide internal directories.