Documentation ¶
Index ¶
- func BlocksOfType(body *hclsyntax.Body, blockType string) []*hclsyntax.Block
- func CollectAttributes(bodies ...hcl.Body) []*hclsyntax.Attribute
- func CollectBlockTypes(bodies ...hcl.Body) []string
- func CollectExpressions(bodies ...hcl.Body) []hclsyntax.Expression
- func MergeBodies(dest, src *hclsyntax.Body, replace bool) *hclsyntax.Body
- func NewHCLSyntaxBodyWithAttr(name string, value cty.Value, rng hcl.Range) *hclsyntax.Body
- func NewHCLSyntaxBodyWithStringAttr(name, value string) *hclsyntax.Body
- func RenameAttribute(body *hclsyntax.Body, old, new string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlocksOfType ¶ added in v1.11.0
func CollectAttributes ¶ added in v1.7.0
func CollectBlockTypes ¶ added in v1.7.0
func CollectBlockTypes(bodies ...hcl.Body) []string
func CollectExpressions ¶ added in v1.7.0
func CollectExpressions(bodies ...hcl.Body) []hclsyntax.Expression
func MergeBodies ¶ added in v1.7.0
func NewHCLSyntaxBodyWithAttr ¶ added in v1.11.0
func NewHCLSyntaxBodyWithStringAttr ¶ added in v1.11.0
func RenameAttribute ¶ added in v1.10.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.