Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAndInterpolateAllKeys ¶
FindAndInterpolateAllKeys takes an `input` any value, and recursively identifies any values that should be replaced from `state`.
A value `v` should be replaced if it is wrapped as follows: `$(v)`.
func FindAndInterpolateEnvVars ¶
FindAndInterpolateEnv takes a `config` any value, and recursively identifies any values that should be replaced from `env`.
A value `v` should be replaced if it is wrapped as follows: `$(v)`.
func InterpolateKey ¶
InterpolateKey takes a multi-part, dot-separated key and attempts to replace it with its corresponding value in `state`.
A key is valid if it contains at least two parts, with:
- the first part being the workflow step's `ref` variable
- the second part being one of `inputs` or `outputs`
If a key has more than two parts, then we traverse the parts to find the value we want to replace. We support traversing both nested maps and lists and any combination of the two.