terraform

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceType

func GetResourceType(resource hclwrite.Block) string

func GetTerraformFilePaths

func GetTerraformFilePaths(rootDir string) ([]string, error)

func GetTerraformVersion

func GetTerraformVersion() (*convert.Version, error)

func ValidateTerraformInitRun

func ValidateTerraformInitRun(dir string) error

Types

type ModuleMetadata

type ModuleMetadata struct {
	Key    string `json:"Key"`
	Source string `json:"Source"`
	Dir    string `json:"Dir"`
}

type ModulesJson

type ModulesJson struct {
	Modules []ModuleMetadata `json:"Modules"`
}

type VersionPart

type VersionPart int
const (
	Major VersionPart = iota
	Minor
)

func (VersionPart) EnumIndex

func (w VersionPart) EnumIndex() int

Jump to

Keyboard shortcuts

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