jsonnet

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeVM

func MakeVM() *jsonnet.VM

func NewVM

func NewVM(param string, importer jsonnet.Importer) *jsonnet.VM

func Read

func Read(fs afero.Fs, filePath, tla string, importer jsonnet.Importer, dest any) error

func ReadToNode

func ReadToNode(fs afero.Fs, filePath string) (ast.Node, error)

func SetNativeFunctions

func SetNativeFunctions(vm *jsonnet.VM)

func ValidateJSONSchema added in v0.3.0

func ValidateJSONSchema(name string) *jsonnet.NativeFunction

Types

type FileImporter

type FileImporter = jsonnet.FileImporter

type ModuleImporter added in v0.3.0

type ModuleImporter struct {
	// contains filtered or unexported fields
}

func NewImporter

func NewImporter(ctx context.Context, logE *logrus.Entry, param *module.ParamInstall, importer jsonnet.Importer, installer *module.Installer) *ModuleImporter

func (*ModuleImporter) Import added in v0.3.0

func (ip *ModuleImporter) Import(importedFrom, importedPath string) (jsonnet.Contents, string, error)

type Node

type Node = ast.Node

Jump to

Keyboard shortcuts

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