Versions in this module Expand all Collapse all v0 v0.3.0 Aug 24, 2026 v0.2.0 Aug 12, 2026 Changes in this version + const EvalError + var FromValueCmpOptions = cmp.Options + func AsEvalError(v cty.Value) cty.Value + func EvalResult(v cty.Value, diags tfdiags.Diagnostics) (cty.Value, tfdiags.Diagnostics) + func Evaluate(ctx context.Context, what Evalable, scope Scope) (cty.Value, tfdiags.Diagnostics) + func HasEvalErrors(v cty.Value) bool + func IsEvalError(v cty.Value) bool + func StaticCheckTraversal(traversal hcl.Traversal, evalable Evalable) tfdiags.Diagnostics + func StaticCheckTraversalThroughType(traversal hcl.Traversal, typeConstraint cty.Type) tfdiags.Diagnostics + func TraversalStepAttributeName(step hcl.Traverser) (string, bool) + func WithoutEvalErrorMarks(v cty.Value) cty.Value + type Attribute interface + func NestedSymbolTable(table SymbolTable) Attribute + func ValueOf(v Valuer) Attribute + type ChildScopeBuilder func(ctx context.Context, parent Scope) Scope + func (b ChildScopeBuilder) Build(ctx context.Context, parent Scope) Scope + type Closure struct + func NewClosure(evalable Evalable, scope Scope) *Closure + func (c *Closure) StaticCheckTraversal(traversal hcl.Traversal) tfdiags.Diagnostics + func (c *Closure) Value(ctx context.Context) (cty.Value, tfdiags.Diagnostics) + func (c *Closure) ValueSourceRange() *tfdiags.SourceRange + type Evalable interface + EvalableSourceRange func() tfdiags.SourceRange + Evaluate func(ctx context.Context, hclCtx *hcl.EvalContext) (cty.Value, tfdiags.Diagnostics) + FunctionCalls func() iter.Seq[*hcl.StaticCall] + References func() iter.Seq[hcl.Traversal] + ResultTypeConstraint func() cty.Type + func EvalableHCLBody(body hcl.Body, spec hcldec.Spec) Evalable + func EvalableHCLBodyJustAttributes(body hcl.Body) Evalable + func EvalableHCLBodyWithDynamicBlocks(body hcl.Body, spec hcldec.Spec) Evalable + func EvalableHCLExpression(expr hcl.Expression) Evalable + func ForcedErrorEvalable(diags tfdiags.Diagnostics, sourceRange tfdiags.SourceRange) Evalable + type FromValue struct + func DeriveFromDerived[T, U any](fv FromValue[T], f func(T) (U, error)) (FromValue[U], error) + func DeriveFromValue[T any](v cty.Value, f func(cty.Value) (T, error)) (FromValue[T], error) + func Known[T any](knownValue T) FromValue[T] + func Unknown[T any]() FromValue[T] + func (fv FromValue[T]) Equal(other FromValue[T]) bool + func (fv FromValue[T]) GoString() string + func (fv FromValue[T]) HasMark(mark any) bool + func (fv FromValue[T]) IsKnown() bool + func (fv FromValue[T]) KnownValue() T + func (fv FromValue[T]) Mark(marks ...any) FromValue[T] + func (fv FromValue[T]) Unmark() (FromValue[T], cty.ValueMarks) + func (fv FromValue[T]) ValueOk() (T, bool) + func (fv FromValue[T]) WithMarks(marks cty.ValueMarks) FromValue[T] + type Scope interface + ResolveFunc func(ctx context.Context, call *hcl.StaticCall) (function.Function, tfdiags.Diagnostics) + func FlatScopeForTesting(symbols map[string]cty.Value) Scope + type SymbolTable interface + HandleInvalidStep func(rng tfdiags.SourceRange) tfdiags.Diagnostics + ResolveAttr func(ref hcl.TraverseAttr) (Attribute, tfdiags.Diagnostics) + func NestedSymbolTableFromAttribute(attr Attribute) SymbolTable + type Valuer interface + StaticCheckTraversal func(traversal hcl.Traversal) tfdiags.Diagnostics + Value func(ctx context.Context) (cty.Value, tfdiags.Diagnostics) + ValueSourceRange func() *tfdiags.SourceRange + func ConstantValuer(v cty.Value) Valuer + func ConstantValuerWithSourceRange(v cty.Value, rng tfdiags.SourceRange) Valuer + func DerivedValuer(source Valuer, ...) Valuer + func DerivedValuerContext(source Valuer, ...) Valuer + func ForcedErrorValuer(diags tfdiags.Diagnostics) Valuer + func ForcedErrorValuerWithSourceRange(diags tfdiags.Diagnostics, rng tfdiags.SourceRange) Valuer