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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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