Documentation
¶
Overview ¶
Package eval translates runtime core.Context data into HCL EvalContext structures and dynamically evaluates HCL AST expressions back into Go primitives.
Index ¶
- func Any(expr hcl.Expression, execCtx *runtime.ExecutionContext) (any, error)
- func BaseContext() *hcl.EvalContext
- func Bool(expr hcl.Expression, execCtx *runtime.ExecutionContext, defaultVal bool) (bool, error)
- func Int(expr hcl.Expression, execCtx *runtime.ExecutionContext, defaultVal int) (int, error)
- func Map(expr hcl.Expression, execCtx *runtime.ExecutionContext) (map[string]any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Any ¶
func Any(expr hcl.Expression, execCtx *runtime.ExecutionContext) (any, error)
Any evaluates an arbitrary HCL expression into corresponding Go types.
func BaseContext ¶
func BaseContext() *hcl.EvalContext
BaseContext returns the singleton root EvalContext containing all standard functions.
func Bool ¶
func Bool(expr hcl.Expression, execCtx *runtime.ExecutionContext, defaultVal bool) (bool, error)
Bool evaluates an HCL expression to a boolean value.
func Int ¶
func Int(expr hcl.Expression, execCtx *runtime.ExecutionContext, defaultVal int) (int, error)
Int evaluates an HCL expression to an integer.
func Map ¶
func Map(expr hcl.Expression, execCtx *runtime.ExecutionContext) (map[string]any, error)
Map evaluates an HCL expression into a string-keyed dictionary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.