Documentation
¶
Overview ¶
Package resolver performs Tekton-style variable substitution:
$(params.name) – scalar param $(params.obj.key) – object param key $(params.arr[*]) – array param expanded into multiple args (only via SubstituteArgs) $(tasks.X.results.Y) – named result from a previously-executed task $(context.taskRun.name) – synthesized context var
The double-dollar literal `$$` produces a single `$` and is not interpreted.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Substitute ¶
Substitute replaces $(...) references in s using ctx. Returns an error for unknown references.
Types ¶
type Context ¶
type Context struct {
Params map[string]string // string params
ArrayParams map[string][]string // array params (only used by SubstituteArgs for [*] expansion)
ObjectParams map[string]map[string]string // object params
Results map[string]map[string]string // task name → result name → value
ContextVars map[string]string // dotted name → value (without "context." prefix)
}
Click to show internal directories.
Click to hide internal directories.