Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRawVM ¶
func MakeRawVM(importPaths []string, extCode map[string]string, tlaCode map[string]string, maxStack int) *jsonnet.VM
MakeRawVM returns a Jsonnet VM with some extensions of Tanka, including: - extended importer - extCode and tlaCode applied - native functions registered This is exposed because Go is used for advanced use cases, like finding transitive imports or linting.
Types ¶
type JsonnetGoImplementation ¶
type JsonnetGoImplementation struct {
Path string
}
func (*JsonnetGoImplementation) MakeEvaluator ¶
func (i *JsonnetGoImplementation) MakeEvaluator(importPaths []string, extCode map[string]string, tlaCode map[string]string, maxStack int) types.JsonnetEvaluator
type JsonnetGoVM ¶
type JsonnetGoVM struct {
// contains filtered or unexported fields
}
func (*JsonnetGoVM) EvaluateAnonymousSnippet ¶
func (vm *JsonnetGoVM) EvaluateAnonymousSnippet(snippet string) (string, error)
func (*JsonnetGoVM) EvaluateFile ¶
func (vm *JsonnetGoVM) EvaluateFile(filename string) (string, error)
Click to show internal directories.
Click to hide internal directories.