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) (*structpb.Value, error)
- func Expand(obj *InterpolationContext, value *structpb.Value) (*structpb.Value, error)
- func ExpandString(obj *InterpolationContext, value string) (string, error)
- func MoaValueToStructPbValue(val value.Value) (*structpb.Value, error)
- func ObjectToProtoValue(object any) (*structpb.Value, error)
- func StructPbValueToMoaValue(val *structpb.Value) value.Value
- 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
func MoaValueToStructPbValue ¶ added in v0.18.0
func StructPbValueToMoaValue ¶ added in v0.18.0
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]*structpb.Value `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.
func (*InterpolationContext) ToStructPbValue ¶ added in v0.18.0
func (ic *InterpolationContext) ToStructPbValue() *structpb.Value
type StepResultView ¶
Click to show internal directories.
Click to hide internal directories.