Documentation
¶
Index ¶
- func ConcreteString(v cty.Value) (string, bool)
- func ContainsNestedUnknown(v cty.Value) bool
- func FormatIndexKey(key cty.Value) (string, bool)
- func LiteralInt(v cty.Value) (int, bool)
- func Materialized(v cty.Value) bool
- func StringFromAttribute(attr *hclsyntax.Attribute, ctx *hcl.EvalContext) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcreteString ¶
ConcreteString returns a Go string when v is a materialized cty.String.
func ContainsNestedUnknown ¶
ContainsNestedUnknown reports whether a wholly-known value still contains unknown or dynamic-typed elements that must be preserved as source references.
func FormatIndexKey ¶
FormatIndexKey renders a materialized string or number index for HCL traversals.
func LiteralInt ¶
LiteralInt parses a materialized number or decimal string as int (e.g. count).
func Materialized ¶
Materialized reports whether v is known and non-null. cty's integration methods (AsString, LengthInt, ElementIterator, AsValueSlice, …) panic on null even when IsWhollyKnown() is true.
func StringFromAttribute ¶
func StringFromAttribute(attr *hclsyntax.Attribute, ctx *hcl.EvalContext) string
StringFromAttribute evaluates attr under ctx and returns a concrete string, or "".
Types ¶
This section is empty.