body

package
v1.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlocksOfType added in v1.11.0

func BlocksOfType(body *hclsyntax.Body, blockType string) []*hclsyntax.Block

func CollectAttributes added in v1.7.0

func CollectAttributes(bodies ...hcl.Body) []*hclsyntax.Attribute

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 MergeBodies(dest, src *hclsyntax.Body, replace bool) *hclsyntax.Body

func NewHCLSyntaxBodyWithAttr added in v1.11.0

func NewHCLSyntaxBodyWithAttr(name string, value cty.Value, rng hcl.Range) *hclsyntax.Body

func NewHCLSyntaxBodyWithStringAttr added in v1.11.0

func NewHCLSyntaxBodyWithStringAttr(name, value string) *hclsyntax.Body

func RenameAttribute added in v1.10.0

func RenameAttribute(body *hclsyntax.Body, old, new string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL