Documentation
¶
Index ¶
- func ParseHCL2(p []byte, v interface{}) (err error)
- func ParseTerraformPlan(p []byte, v *interface{}) error
- func ParseYAML(p []byte, v interface{}) error
- type ResourceActions
- type TerraformPlanConfiguration
- type TerraformPlanJson
- type TerraformPlanModule
- type TerraformPlanResource
- type TerraformPlanResourceChange
- type TerraformScanInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHCL2 ¶
ParseHCL2 unmarshals HCL files that are written using version 2 of the HCL language and return parsed file content.
func ParseTerraformPlan ¶
Types ¶
type ResourceActions ¶
type ResourceActions []string
type TerraformPlanConfiguration ¶ added in v0.5.0
type TerraformPlanConfiguration struct {
RootModule TerraformPlanModule `json:"root_module"`
}
type TerraformPlanJson ¶
type TerraformPlanJson struct { ResourceChanges []TerraformPlanResourceChange `json:"resource_changes"` Configuration TerraformPlanConfiguration `json:"configuration"` }
type TerraformPlanModule ¶ added in v0.5.0
type TerraformPlanModule struct {
Resources []TerraformPlanResourceChange `json:"resources"`
}
type TerraformPlanResource ¶
type TerraformPlanResourceChange ¶
type TerraformPlanResourceChange struct { TerraformPlanResource Change struct { Actions ResourceActions Before map[string]interface{} // will be null when the action is `create` After map[string]interface{} // will be null when then action is `delete` } Expressions interface{} `json:"expressions"` }
type TerraformScanInput ¶
Click to show internal directories.
Click to hide internal directories.