Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuiltinFunctions ¶
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 ¶
type EvaluationContext struct { DiscoveredResourceSet map[string]struct{} Variables map[string]interface{} Functions map[string]Function }
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.
type Function ¶
type Function func(e *EvaluationContext, args ...interface{}) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.