tagging

package
v0.1.40 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasResourceTagFn

func HasResourceTagFn(resourceType string) bool

func ParseHclValueStringToTokens

func ParseHclValueStringToTokens(hclValueString string) hclwrite.Tokens

func TagBlock

func TagBlock(args TagBlockArgs) (string, error)

Types

type Result

type Result struct {
	SwappedTagsStrings []string
}

func TagResource

func TagResource(args TagBlockArgs) (*Result, error)

type TagBlockArgs

type TagBlockArgs struct {
	Filename  string
	Block     *hclwrite.Block
	Tags      string
	Terratag  convert.TerratagLocal
	TagId     string
	TfVersion convert.Version
}

type TagResourceFn

type TagResourceFn func(args TagBlockArgs) (*Result, error)

Jump to

Keyboard shortcuts

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