Documentation ¶
Index ¶
- type Variable
- func (variables *Variable) Evaluate(values map[string]interface{}) map[string]interface{}
- func (variables *Variable) EvaluateWithInteractsh(values map[string]interface{}, interact *interactsh.Client) (map[string]interface{}, []string)
- func (variables *Variable) GetAll() map[string]interface{}
- func (variables Variable) JSONSchema() *jsonschema.Schema
- func (variables *Variable) UnmarshalJSON(data []byte) error
- func (variables *Variable) UnmarshalYAML(unmarshal func(interface{}) error) error
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) 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) JSONSchema ¶
func (variables Variable) JSONSchema() *jsonschema.Schema
func (*Variable) UnmarshalJSON ¶
func (*Variable) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.