Documentation ¶
Index ¶
- func AllBuiltinFunctions(variables map[string]interface{}, discoveredResourceSet map[string]struct{}) map[string]Function
- func DiscoveryBuiltinFunctions(variables map[string]interface{}) map[string]Function
- func IsTemplateExpression(input string) bool
- type Error
- type ErrorKind
- type EvaluationContext
- type Function
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllBuiltinFunctions ¶ added in v0.27.0
func AllBuiltinFunctions( variables map[string]interface{}, discoveredResourceSet map[string]struct{}, ) map[string]Function
AllBuiltinFunctions returns all builtin functions available. This includes DiscoveryBuiltinFunctions().
func DiscoveryBuiltinFunctions ¶ added in v0.27.0
DiscoveryBuiltinFunctions returns the functions available during the discovery phase. Functions that retrieve information about resources will not yet be available.
func IsTemplateExpression ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
We have this error type so that we can use its `kind` as a metric label in the future. Since callers in practice do not pass in a metrics collector currently, we do nothing with it yet.
type EvaluationContext ¶
Makes state available to ARM template function evaluation. It contains references to implementations of functions, and the other fields exist to pass data to certain function impls other than what is already in their args.
func (*EvaluationContext) EvaluateTemplateString ¶
func (e *EvaluationContext) EvaluateTemplateString(input string) (interface{}, error)
Detects whether an ARM string is an expression (enclosed by []), and tries to evaluate it if so.