Documentation
¶
Index ¶
- func AttributeAtPos(block *hclsyntax.Block, pos hcl.Pos) (*hclsyntax.Attribute, string)
- func AttributeWithName(block *hclsyntax.Block, name string) *hclsyntax.Attribute
- func BlockAtPos(body *hclsyntax.Body, pos hcl.Pos) (*hclsyntax.Block, string)
- func BlockAttributeLiteralValue(block *hclsyntax.Block, name string) *string
- func ContainsPos(r hcl.Range, pos hcl.Pos) bool
- func ExtractAction(block *hclsyntax.Block) *string
- func ExtractAzureResourceType(block *hclsyntax.Block) *string
- func ExtractMSGraphUrl(block *hclsyntax.Block, data []byte) 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 AttributeAtPos ¶
func AttributeWithName ¶
func ExtractAction ¶ added in v0.5.0
func ExtractAzureResourceType ¶ added in v0.5.0
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 CombineHclNodes ¶ added in v0.5.0
func JsonEncodeExpressionToHclNode ¶ added in v0.5.0
func JsonEncodeExpressionToHclNode(data []byte, expression hclsyntax.Expression) *HclNode
func (HclNode) IsValueArray ¶
func (HclNode) IsValueMap ¶
type KeyValueFormat ¶
type KeyValueFormat int
const ( KeyEqualValue KeyValueFormat = iota QuotedKeyEqualValue QuotedKeyColonValue )
Click to show internal directories.
Click to hide internal directories.