Documentation
¶
Index ¶
- func ParameterCtyType(typ string) (cty.Type, error)
- func ParameterFromBlock(block *terraform.Block) (*types.Parameter, hcl.Diagnostics)
- func ParameterFromState(block *tfjson.StateResource) (types.Parameter, error)
- func ParameterOptionFromBlock(block *terraform.Block) (types.ParameterOption, hcl.Diagnostics)
- func ParameterUsageDiagnostics(p types.Parameter) hcl.Diagnostics
- func ParameterValidationFromBlock(block *terraform.Block) (types.ParameterValidation, hcl.Diagnostics)
- func ParametersFromState(state *tfjson.StateModule) ([]types.Parameter, error)
- func PresetFromBlock(block *terraform.Block) (tfPreset types.Preset)
- func SecretFromBlock(block *terraform.Block) (req *types.SecretRequirement, diags hcl.Diagnostics)
- func VariableFromBlock(block *terraform.Block) (tfVar types.Variable)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParameterFromBlock ¶
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 SecretFromBlock ¶ added in v1.0.9
func SecretFromBlock(block *terraform.Block) (req *types.SecretRequirement, diags hcl.Diagnostics)
SecretFromBlock decodes a `data "coder_secret" {}` Terraform block into a SecretRequirement. Exactly one of `env` or `file` must be set, and `help_message` is required. Returns (nil, diags) on validation failure.
func VariableFromBlock ¶ added in v1.0.5
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.
Click to show internal directories.
Click to hide internal directories.