Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildModule ¶
type ChildModule struct {
Address string `json:"address"`
Resources []PlannedResource `json:"resources"`
ChildModules []ChildModule `json:"child_modules"`
}
type ParseResult ¶
func ParseTerraformFiles ¶
func ParseTerraformFiles(paths []string) (*ParseResult, error)
func ParseTerraformPlan ¶
func ParseTerraformPlan(filename string) (*ParseResult, error)
ParseTerraformPlan parses a terraform plan JSON file and extracts resources with tags
type PlanResource ¶
type PlanResource struct {
Type string
Name string
Tags map[string]string
File string
Address string
}
PlanResource is used for resources parsed from terraform plan
type PlannedResource ¶
type PlannedValues ¶
type PlannedValues struct {
RootModule RootModule `json:"root_module"`
}
type RootModule ¶
type RootModule struct {
Resources []PlannedResource `json:"resources"`
ChildModules []ChildModule `json:"child_modules"`
}
type TerraformPlan ¶
type TerraformPlan struct {
PlannedValues PlannedValues `json:"planned_values"`
}
TerraformPlan represents the structure of terraform plan JSON output
Click to show internal directories.
Click to hide internal directories.