script

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval

func Eval(code string, inputs map[string]interface{}) (interface{}, error)

Eval evaluates an expression.

func EvalBool

func EvalBool(code string, inputs map[string]interface{}) (bool, error)

EvalBool evaluates an expression and returns the response in string format.

func EvalStr

func EvalStr(code string, inputs map[string]interface{}) (string, error)

EvalStr evaluates an expression and returns the response in string format.

func EvalWhen

func EvalWhen(code string, inputs map[string]interface{}) (bool, bool, error)

EvalWhen evalutes a when clause.

func Expand

func Expand(code string, inputs map[string]interface{}) string

Expand expands the script inside the text snippet.

func ExpandConfig

func ExpandConfig(in *schema.Config, inputs map[string]interface{})

ExpandConfig expands scripts in the stage.

func ExpandStage

func ExpandStage(stage *schema.Stage, inputs map[string]interface{})

ExpandStage expands scripts in the stage.

func ExpandStep

func ExpandStep(step *schema.Step, inputs map[string]interface{})

EexpandStep expands scripts in the step.

Types

This section is empty.

Jump to

Keyboard shortcuts

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