tfbuild

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(children ...FileElement) *hclwrite.File

func FileString

func FileString(file *hclwrite.File) string

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

func TraversalResource(resourceType string, resourceName string) hcl.Traversal

func TraversalResourceAttribute

func TraversalResourceAttribute(resourceType string, resourceName string, attr string) hcl.Traversal

Types

type BlockElement

type BlockElement func(*hclwrite.Block)

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

type FileElement func(*hclwrite.File)

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

Jump to

Keyboard shortcuts

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