vars

package
v0.34.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Types and constants pertaining to the various ways we can pass variables to a jsonnet VM engine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpressionType

type ExpressionType int
const (
	// --*-str
	String ExpressionType = iota
	// --*-code
	Code
)

type Source

type Source int
const (
	// --*-*
	Literal Source = iota
	// --*-*-file
	File
)

type Type

type Type int
const (
	// --ext-*
	Ext Type = iota
	// --tla-*
	TLA
)

type Var

type Var struct {
	Typ    Type
	Expr   ExpressionType
	Source Source
	Name   string
	Value  string
}

func New

func New(typ Type, expr ExpressionType, source Source, name, value string) Var

func (*Var) Setter

func (v *Var) Setter() func(*jsonnet.VM, string, string)

Jump to

Keyboard shortcuts

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