jsonnet package - codefloe.com/crowci/crow/v6/pipeline/frontend/jsonnet - Go Packages

jsonnet

package
v6.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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

func IsJsonnetFile(filename string) bool

IsJsonnetFile returns true if the filename has a .jsonnet extension.

func IsLibsonnetFile

func IsLibsonnetFile(filename string) bool

IsLibsonnetFile returns true if the filename has a .libsonnet extension.

Types

type File

type File struct {
	Name string
	Data []byte
}

File represents a named file with its contents, used for Jsonnet imports.

Jump to

Keyboard shortcuts

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