Documentation ¶
Index ¶
- func File(children ...FileElement) *hclwrite.File
- func FileString(file *hclwrite.File) string
- func FunctionCall(name string, attrExpressions ...*hclwrite.Expression) *hclwrite.Expression
- func Identifier(name string) *hclwrite.Expression
- func List(elements ...*hclwrite.Expression) *hclwrite.Expression
- func String(val string) *hclwrite.Expression
- func StringList(vals ...string) *hclwrite.Expression
- func TraversalResource(resourceType string, resourceName string) hcl.Traversal
- func TraversalResourceAttribute(resourceType string, resourceName string, attr string) hcl.Traversal
- type BlockElement
- func Attribute(name string, expr *hclwrite.Expression) BlockElement
- func AttributeBool(name string, val bool) BlockElement
- func AttributeInt(name string, val int64) BlockElement
- func AttributeString(name string, val string) BlockElement
- func AttributeTraversal(name string, ref hcl.Traversal) BlockElement
- func DependsOn(deps ...hcl.Traversal) BlockElement
- func InnerBlock(typeName string, children ...BlockElement) BlockElement
- type FileElement
- func Block(typeName string, labels []string, children ...BlockElement) FileElement
- func Data(resourceType string, resourceName string, children ...BlockElement) FileElement
- func Provider(providerType string, children ...BlockElement) FileElement
- func Resource(resourceType string, resourceName string, children ...BlockElement) FileElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func File ¶
func File(children ...FileElement) *hclwrite.File
func FileString ¶
FileString returns the hcl.File as string
func FunctionCall ¶
func FunctionCall(name string, attrExpressions ...*hclwrite.Expression) *hclwrite.Expression
func Identifier ¶
func Identifier(name string) *hclwrite.Expression
func List ¶
func List(elements ...*hclwrite.Expression) *hclwrite.Expression
func String ¶
func String(val string) *hclwrite.Expression
func StringList ¶
func StringList(vals ...string) *hclwrite.Expression
func TraversalResource ¶
Types ¶
type BlockElement ¶
func Attribute ¶
func Attribute(name string, expr *hclwrite.Expression) BlockElement
func AttributeBool ¶
func AttributeBool(name string, val bool) BlockElement
func AttributeInt ¶
func AttributeInt(name string, val int64) BlockElement
func AttributeString ¶
func AttributeString(name string, val string) BlockElement
func AttributeTraversal ¶
func AttributeTraversal(name string, ref hcl.Traversal) BlockElement
func DependsOn ¶
func DependsOn(deps ...hcl.Traversal) BlockElement
func InnerBlock ¶
func InnerBlock(typeName string, children ...BlockElement) BlockElement
type FileElement ¶
func Block ¶
func Block(typeName string, labels []string, children ...BlockElement) FileElement
func Data ¶
func Data(resourceType string, resourceName string, children ...BlockElement) FileElement
func Provider ¶
func Provider(providerType string, children ...BlockElement) FileElement
func Resource ¶
func Resource(resourceType string, resourceName string, children ...BlockElement) FileElement
Click to show internal directories.
Click to hide internal directories.