Documentation ¶
Overview ¶
The `types` package implements variable types which can be used in configurations. The supported types are `String`, `Duration`, `Int`, `UInt`, `Float`, `Bool` and `Task`. The `Task` type can either be a reference to a task by name, or instance. Binding from reference to an instance is done after configurations are parsed.
Index ¶
Constants ¶
const (
ReIdentifier = `[a-zA-Z][a-zA-Z0-9_\-]*`
)
Variables ¶
This section is empty.
Functions ¶
func DomainFqn ¶ added in v1.1.5
DomainFqn returns a fully-qualified value, which includes a trailing dot
func DomainInZone ¶ added in v1.1.5
DomainInZone returns unqualified domain name if it is in the zone or an empty string if it is not.
func DomainUnfqn ¶ added in v1.1.5
DomainUnfqn remove final domain separator and domain
func IsIdentifier ¶
Return true if the string is a valid identifier
Types ¶
type Duration ¶
func (*Duration) UnmarshalJSON ¶
type Eval ¶ added in v1.1.1
type Eval string // Evaluation into a different type
func (*Eval) Interpolate ¶ added in v1.1.1
Interpolation of a string to return a set of tokens, some of which are strings, and some of which are expression nodes
func (*Eval) InterpolateTokenize ¶ added in v1.1.1
Interpolation of a string to return a set of string tokens, which are either "${" "$${" or "}" to be recognized as special, or any other string which is interpreted based on context as string or expression
type Task ¶
Task type, which can be either a reference to a task by name, or the instance. Binding from reference to an instance is done after configuration is parsed, in the provider.