convert

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendLocalsBlock

func AppendLocalsBlock(file *hclwrite.File, filename string, terratag TerratagLocal)

func AppendTagBlocks

func AppendTagBlocks(resource *hclwrite.Block, tags string) error

func GetExistingTagsExpression

func GetExistingTagsExpression(tokens hclwrite.Tokens, tfVersion Version) string

func MergeTerratagLocals

func MergeTerratagLocals(attribute *hclwrite.Attribute, added string) (string, error)

func MoveExistingTags

func MoveExistingTags(filename string, terratag TerratagLocal, block *hclwrite.Block, tagId string) (bool, error)

func UnquoteTagsAttribute

func UnquoteTagsAttribute(swappedTagsStrings []string, text string) string

Types

type Locals

type Locals map[string]string

type TerratagLocal

type TerratagLocal struct {
	Found map[string]hclwrite.Tokens
	Added string
}

type Version

type Version struct {
	Major int
	Minor int
}

Jump to

Keyboard shortcuts

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