hclext
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- func CreateDotReferenceFromTraversal(traversals ...hcl.Traversal) string
- func DecodeVarType(exp hcl.Expression) (cty.Type, *typeexpr.Defaults, error)
- func ExportOutputs(modules terraform.Modules) cty.Value
- func InsertTupleElement(list cty.Value, idx int, val cty.Value) cty.Value
- func MergeObjects(a, b cty.Value) cty.Value
- func MergeWithTupleElement(list cty.Value, idx int, val cty.Value) cty.Value
- func ReferenceNames(exp hcl.Expression) []string
- func Serialize(blocks terraform.Blocks) string
- type ReferenceBuilder
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcCreateDotReferenceFromTraversal¶
func CreateDotReferenceFromTraversal(traversals ...hcl.Traversal)string
funcInsertTupleElement¶
InsertTupleElement inserts a value into a tuple at the specified index.If the idx is outside the bounds of the list, it grows the tuple tothe new size, and fills in `cty.NilVal` for the missing elements.
This function will not panic. If the list value is not a list, it willbe replaced with an empty list.
funcReferenceNames¶
func ReferenceNames(exp hcl.Expression) []string
Types¶
typeReferenceBuilder¶
type ReferenceBuilder []hcl.Traverser
funcNewReferenceBuilder¶
func NewReferenceBuilder(path ...string) *ReferenceBuilder
func (*ReferenceBuilder)AddIndex¶
func (b *ReferenceBuilder) AddIndex(idxint) *ReferenceBuilder
func (*ReferenceBuilder)AddKey¶
func (b *ReferenceBuilder) AddKey(keystring) *ReferenceBuilder
func (*ReferenceBuilder)AddPath¶
func (b *ReferenceBuilder) AddPath(path ...string) *ReferenceBuilder
func (ReferenceBuilder)Expression¶
func (bReferenceBuilder) Expression() hcl.Expression