variables

package
v3.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Variable

type Variable struct {
	LazyEval                        bool `yaml:"-" json:"-"` // LazyEval is used to evaluate variables lazily if it using any expression or global variables
	utils.InsertionOrderedStringMap `yaml:"-" json:"-"`
}

Variable is a key-value pair of strings that can be used throughout template.

func (*Variable) Evaluate

func (variables *Variable) Evaluate(values map[string]interface{}) map[string]interface{}

Evaluate returns a finished map of variables based on set values

func (*Variable) EvaluateWithInteractsh

func (variables *Variable) EvaluateWithInteractsh(values map[string]interface{}, interact *interactsh.Client) (map[string]interface{}, []string)

EvaluateWithInteractsh returns evaluation results of variables with interactsh

func (*Variable) GetAll

func (variables *Variable) GetAll() map[string]interface{}

GetAll returns all variables as a map

func (Variable) JSONSchema

func (variables Variable) JSONSchema() *jsonschema.Schema

func (*Variable) UnmarshalJSON

func (variables *Variable) UnmarshalJSON(data []byte) error

func (*Variable) UnmarshalYAML

func (variables *Variable) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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