jsonnet

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 14 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)

Types

type FileImporter

type FileImporter = jsonnet.FileImporter

type Importer

type Importer 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) *Importer

func (*Importer) Import

func (ip *Importer) 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