extract

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParameterCtyType

func ParameterCtyType(typ string) (cty.Type, error)

func ParameterFromBlock

func ParameterFromBlock(block *terraform.Block) (*types.Parameter, hcl.Diagnostics)

func ParameterFromState

func ParameterFromState(block *tfjson.StateResource) (types.Parameter, error)

func ParameterOptionFromBlock

func ParameterOptionFromBlock(block *terraform.Block) (types.ParameterOption, hcl.Diagnostics)

func ParameterUsageDiagnostics

func ParameterUsageDiagnostics(p types.Parameter) hcl.Diagnostics

func ParameterValidationFromBlock

func ParameterValidationFromBlock(block *terraform.Block) (types.ParameterValidation, hcl.Diagnostics)

func ParametersFromState

func ParametersFromState(state *tfjson.StateModule) ([]types.Parameter, error)

func PresetFromBlock added in v1.0.3

func PresetFromBlock(block *terraform.Block) types.Preset

func VariableFromBlock added in v1.0.5

func VariableFromBlock(block *terraform.Block) (tfVar types.Variable)

VariableFromBlock extracts a terraform variable, but not its final resolved value. code taken mostly from https://github.com/aquasecurity/trivy/blob/main/pkg/iac/scanners/terraform/parser/evaluator.go#L479

Types

This section is empty.

Jump to

Keyboard shortcuts

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