variables

package
v3.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 10 Imported by: 3

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 added in v3.2.4

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