binary

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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)

Jump to

Keyboard shortcuts

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