variables

package
v3.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 10 Imported by: 5

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) JSONSchemaType

func (variables Variable) JSONSchemaType() *jsonschema.Type

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