Documentation ¶
Index ¶
- Constants
- func DigObject(object any, key string) (any, error)
- func DigProtoValue(object any, key string) (*structpb.Value, error)
- func Evaluate(obj any, s string) (*context.Value, error)
- func Expand(obj *InterpolationContext, value *structpb.Value) (*context.Value, error)
- func ExpandString(obj *InterpolationContext, value string) (string, error)
- func ObjectToProtoValue(object any) (*structpb.Value, error)
- func ValueToString(v *structpb.Value) (string, error)
- type InterpolationContext
- type StepResultView
Constants ¶
View Source
const InterpolateClose = "}}"
View Source
const InterpolateOpen = "${{"
Variables ¶
This section is empty.
Functions ¶
func ExpandString ¶
func ExpandString(obj *InterpolationContext, value string) (string, error)
The ExpandString rewrites string and returns string
Types ¶
type InterpolationContext ¶
type InterpolationContext struct { Env map[string]string `json:"env"` ExportFile string `json:"export_file"` Inputs map[string]*structpb.Value `json:"inputs"` Job map[string]string `json:"job"` OutputFile string `json:"output_file"` StepDir string `json:"step_dir"` StepResults map[string]*StepResultView `json:"steps"` WorkDir string `json:"work_dir"` }
InterpolationContext contains fields that can be accessed by expressions.
type StepResultView ¶
Click to show internal directories.
Click to hide internal directories.