hcl

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hcl

type Hcl struct {
	Blocks hclsyntax.Blocks
}

func ParseHCL

func ParseHCL(dirPath string) (Hcl, error)

func (Hcl) ResourceNameMap

func (h Hcl) ResourceNameMap() map[string]struct{}

ResourceNameMap is return map store terraform resource name

type ImportBlock

type ImportBlock struct {
	To       string `hcl:"to"`
	ID       string `hcl:"id"`
	Provider string `hcl:"provider"`
	ForEach  string `hcl:"for_each"`
}

type ImportBlocks

type ImportBlocks []ImportBlock

func (ImportBlocks) Bytes

func (ibs ImportBlocks) Bytes() []byte

type RemoveBlock

type RemoveBlock struct {
	From    string `hcl:"from"`
	Destroy bool   `hcl:"destroy"`
}

type RemoveBlocks

type RemoveBlocks []RemoveBlock

func (RemoveBlocks) Bytes

func (rbs RemoveBlocks) Bytes() []byte

Jump to

Keyboard shortcuts

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