Documentation ¶
Index ¶
- func AttributeAtPos(block *hclsyntax.Block, pos hcl.Pos) *hclsyntax.Attribute
- func AttributeWithName(block *hclsyntax.Block, name string) *hclsyntax.Attribute
- func BlockAtPos(body *hclsyntax.Body, pos hcl.Pos) *hclsyntax.Block
- func ContainsPos(r hcl.Range, pos hcl.Pos) bool
- func ExtractAction(block *hclsyntax.Block) *string
- func ExtractAzureResourceType(block *hclsyntax.Block) *string
- func RangeOver(a hcl.Range, b hcl.Range) hcl.Range
- func ToLiteral(expression hclsyntax.Expression) *string
- func ToLiteralBoolean(expression hclsyntax.Expression) *bool
- type HclNode
- type KeyValueFormat
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributeWithName ¶
func ContainsPos ¶
func ContainsPos(r hcl.Range, pos hcl.Pos) bool
func ExtractAction ¶
func ToLiteral ¶
func ToLiteral(expression hclsyntax.Expression) *string
func ToLiteralBoolean ¶
func ToLiteralBoolean(expression hclsyntax.Expression) *bool
Types ¶
type HclNode ¶
type HclNode struct { Children map[string]*HclNode KeyRange, ValueRange, EqualRange hcl.Range Value *string Key string KeyValueFormat KeyValueFormat }
func BuildHclNode ¶
func HclNodeArraysOfPos ¶
func JsonEncodeExpressionToHclNode ¶
func JsonEncodeExpressionToHclNode(data []byte, expression hclsyntax.Expression) *HclNode
func (HclNode) IsValueArray ¶
func (HclNode) IsValueMap ¶
type KeyValueFormat ¶ added in v1.4.0
type KeyValueFormat int
const ( KeyEqualValue KeyValueFormat = iota QuotedKeyEqualValue QuotedKeyColonValue )
Click to show internal directories.
Click to hide internal directories.