MCPcopy
hub / github.com/opentofu/opentofu / UnparsedVariableValue

Interface UnparsedVariableValue

internal/backend/unparsed_value.go:23–31  ·  view source on GitHub ↗

UnparsedVariableValue represents a variable value provided by the caller whose parsing must be deferred until configuration is available. This exists to allow processing of variable-setting arguments (e.g. in the command package) to be separated from parsing (in the backend package).

Source from the content-addressed store, hash-verified

21// This exists to allow processing of variable-setting arguments (e.g. in the
22// command package) to be separated from parsing (in the backend package).
23type UnparsedVariableValue interface {
24 // ParseVariableValue information in the provided variable configuration
25 // to parse (if necessary) and return the variable value encapsulated in
26 // the receiver.
27 //
28 // If error diagnostics are returned, the resulting value may be invalid
29 // or incomplete.
30 ParseVariableValue(mode configs.VariableParsingMode) (*tofu.InputValue, tfdiags.Diagnostics)
31}
32
33// ParseUndeclaredVariableValues processes a map of unparsed variable values
34// and returns an input values map of the ones not declared in the specified

Callers 6

stubAllVariablesFunction · 0.65
rootModuleCallMethod · 0.65
stubAllVariablesFunction · 0.65

Implementers 10

remoteStoredVariableValueinternal/cloud/backend_context.go
testUnparsedVariableValueinternal/cloud/cloud_variables_test.go
unparsedVariableValueinternal/cloud/testing.go
testVariableValueExpressioninternal/command/test.go
unparsedVariableValueExpressioninternal/command/meta_vars.go
unparsedVariableValueStringinternal/command/meta_vars.go
remoteStoredVariableValueinternal/backend/remote/backend_contex
unparsedVariableValueinternal/backend/remote/testing.go
unparsedInteractiveVariableValueinternal/backend/local/backend_local.g
unparsedUnknownVariableValueinternal/backend/local/backend_local.g

Calls

no outgoing calls

Tested by

no test coverage detected