Documentation
¶
Overview ¶
Package mapexpr implements the `map` block as an HCL expression type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct {
ForEach hhcl.Expression
Iterator string
Key hhcl.Expression
ValueAttr hhcl.Expression
ValueBlock *ast.MergedBlock
}
Attributes of the MapExpr block.
type MapExpr ¶
type MapExpr struct {
Origin info.Range
Attrs Attributes
Children []*MapExpr
}
MapExpr represents a `map` block.
func NewMapExpr ¶
func NewMapExpr(block *ast.MergedBlock) (*MapExpr, error)
NewMapExpr creates a new MapExpr instance.
func (*MapExpr) Value ¶
func (m *MapExpr) Value(ctx *hhcl.EvalContext) (cty.Value, hhcl.Diagnostics)
Value evaluates the map block.
Click to show internal directories.
Click to hide internal directories.