Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonnetBinaryImplementation ¶
type JsonnetBinaryImplementation struct {
BinPath string
}
JsonnetBinaryImplementation runs Jsonnet in a subprocess. It doesn't support native functions. The interface of the binary has to compatible with the official Jsonnet CLI. It has to support the following flags: -J <path> for specifying import paths --ext-code <name>=<value> for specifying external variables --tla-code <name>=<value> for specifying top-level arguments --max-stack <value> for specifying the maximum stack size -e <code> for evaluating code snippets <filename> positional arg for evaluating files
func (*JsonnetBinaryImplementation) MakeEvaluator ¶
func (i *JsonnetBinaryImplementation) MakeEvaluator(importPaths []string, extCode map[string]string, tlaCode map[string]string, maxStack int) types.JsonnetEvaluator
type JsonnetBinaryRunner ¶
type JsonnetBinaryRunner struct {
// contains filtered or unexported fields
}
func (*JsonnetBinaryRunner) EvaluateAnonymousSnippet ¶
func (r *JsonnetBinaryRunner) EvaluateAnonymousSnippet(snippet string) (string, error)
func (*JsonnetBinaryRunner) EvaluateFile ¶
func (r *JsonnetBinaryRunner) EvaluateFile(filename string) (string, error)
Click to show internal directories.
Click to hide internal directories.