Alternera.Plugin.Input (alternera_plugin_sdk v0.9.0)

Copy Markdown View Source

An input of the call a pipeline runs in, as a step reads it: the rule for its name and its value at a path. Plugin.Provisional.Inputs parses and resolves the inputs a step passes.

Summary

Functions

An input's value at segments inside it, as a variable is read: {:ok, value} or :error when it was not passed or the path leads nowhere.

Whether name is a valid input name (as a variable name is).

Functions

fetch(inputs, name, segments)

@spec fetch(map() | nil, String.t(), Alternera.Plugin.JsonPath.segments()) ::
  {:ok, term()} | :error

An input's value at segments inside it, as a variable is read: {:ok, value} or :error when it was not passed or the path leads nowhere.

name?(name)

@spec name?(term()) :: boolean()

Whether name is a valid input name (as a variable name is).