Documentation
¶
Overview ¶
Package vm allows flexible creation of a Jsonnet VM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Vars map[string]string // variables keyed by name
CodeVars map[string]string // code variables keyed by name
TopLevelVars map[string]string // TLA vars keyed by name
TopLevelCodeVars map[string]string // TLA code vars keyed by name
Importer jsonnet.Importer // optional custom importer - default is the filesystem importer
LibPaths []string // library paths in filesystem, ignored when a custom importer is specified
}
Config is the desired configuration of the Jsonnet VM.
func (Config) WithCodeVars ¶
WithCodeVars creates a new config that is the clone of this one with the additional code variables in its environment.
func (Config) WithLibPaths ¶
WithLibPaths create a new config that is the clone of this one with additional library paths.
type VM ¶
type VM struct {
*jsonnet.VM
// contains filtered or unexported fields
}
VM wraps a jsonnet VM and provides some additional methods to create new VMs using the same base configuration and additional tweaks.
Source Files
¶
- helm.go
- nativefuncs.go
- vm.go
- yaml.go
Click to show internal directories.
Click to hide internal directories.