terraform/internal/command/e2etest
Martin Atkins 573c2db658 provider/terraform: Terraform-specific encoding functions
Using the new possibility of provider-contributed functions, this
introduces three new functions which live in the
terraform.io/builtin/terraform provider, rather than being language
builtins, due to their Terraform-domain-specific nature.

The three new functions are:
 - tfvarsencode: takes a mapping value and tries to transform it into
   Terraform CLI's "tfvars" syntax, which is a small subset of HCL that
   only supports key/value pairs with constant values.
 - tfvarsdecode: takes a string containing content that could potentially
   appear in a "tfvars" file and returns an object representing the
   raw variable values defined inside.
 - exprencode: takes an arbitrary Terraform value and produces a string
   that would yield a similar value if parsed as a Terraform expression.

All three of these are very specialized, of use only in unusual situations
where someone is "gluing together" different Terraform configurations etc
when the usual strategies such as data sources are not suitable. There's
more information on the motivations for (and limitations of) each function
in the included documentation.
2024-02-27 16:13:48 -08:00
..
testdata provider/terraform: Terraform-specific encoding functions 2024-02-27 16:13:48 -08:00
.gitignore Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
automation_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
doc.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
init_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
main_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
make-archive.sh Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
module_archive_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
primary_test.go states: Only track root module output values 2023-12-07 09:56:36 -08:00
provider_dev_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
provider_plugin_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
providers_mirror_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
providers_tamper_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
provisioner_plugin_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
provisioner_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
remote_state_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
strip_ansi.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
terraform_provider_funcs_test.go provider/terraform: Terraform-specific encoding functions 2024-02-27 16:13:48 -08:00
terraform_test.go states: Only track root module output values 2023-12-07 09:56:36 -08:00
unmanaged_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
version_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00