hcl

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendInfo added in v0.0.4

type BackendInfo struct {
	Type       string
	Attributes map[string]string
}

type Hcl

type Hcl struct {
	Blocks hclsyntax.Blocks
}

func ParseHCL

func ParseHCL(dirPath string) (Hcl, error)

func (Hcl) BackendURL added in v0.0.4

func (h Hcl) BackendURL() (*BackendInfo, 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 MovedBlock added in v0.0.3

type MovedBlock struct {
	From string `hcl:"from"`
	To   string `hcl:"to"`
}

type MovedBlocks added in v0.0.3

type MovedBlocks []MovedBlock

func (MovedBlocks) Bytes added in v0.0.3

func (mbs MovedBlocks) 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