terraform/config
Martin Atkins b0215fcd0f config: HCL2 config loader
This loader uses the HCL2 parser and decoder to process a config file,
and then transforms the result into the same shape as would be produced
by the HCL config loader.

To avoid making changes to the existing config structures (which are
depended on across much of the codebase) we first decode into a set of
HCL2-tailored structs and then process them into the public-facing structs
that a loader is expected to return. This is a compromise to keep the
config package API broadly unchanged for now. Once we're ready to remove
the old HCL loader (which implies that we're ready to support HCL2
natively elsewhere in the codebase) we will be able to simplify this
quite considerably.

Due to some mismatches of abstraction between HCL/HIL and HCL2, some
shimming is required to get the required result.
2017-10-03 17:47:01 -07:00
..
module remove extra slash from registry urls 2017-09-28 14:45:02 -04:00
test-fixtures config: HCL2 config loader 2017-10-03 17:47:01 -07:00
append.go config: merge/append for local values 2017-09-01 17:51:13 -07:00
append_test.go config: merge/append for local values 2017-09-01 17:51:13 -07:00
config.go config: allow local value interpolations in count 2017-09-01 17:54:05 -07:00
config_string.go config: parse description field for outputs 2017-08-28 09:42:03 -07:00
config_terraform.go add Rehash to terraform.BackendState 2017-03-29 15:53:42 -04:00
config_terraform_test.go config: add "backend" loading to the Terraform section 2017-01-26 14:33:49 -08:00
config_test.go config: allow local value interpolations in count 2017-09-01 17:54:05 -07:00
config_tree.go config: make Merge an exported func 2014-07-18 17:05:22 -07:00
hcl2_shim_util.go config: HCL2 config loader 2017-10-03 17:47:01 -07:00
hcl2_shim_util_test.go config: HCL2 config loader 2017-10-03 17:47:01 -07:00
import_tree.go Condense switch fallthroughs into expr lists 2015-05-26 21:52:36 -04:00
interpolate.go config: parsing of local.foo variables for interpolation 2017-08-21 15:15:25 -07:00
interpolate_funcs.go config: new "transpose" interpolation function 2017-09-28 10:29:25 -07:00
interpolate_funcs_test.go config: new "transpose" interpolation function 2017-09-28 10:29:25 -07:00
interpolate_test.go config: parsing of local.foo variables for interpolation 2017-08-21 15:15:25 -07:00
interpolate_walk.go optimization:Merge slices 2017-09-13 21:08:41 +08:00
interpolate_walk_test.go config: use ast.TypeUnknown and don't remove computed values 2016-11-09 14:28:15 -08:00
lang.go remove config/lang, use hashicorp/hil 2016-02-03 13:24:04 -05:00
loader.go Use all tfvars files in working directory 2017-07-05 17:24:17 -07:00
loader_hcl.go config: parse description field for outputs 2017-08-28 09:42:03 -07:00
loader_hcl2.go config: HCL2 config loader 2017-10-03 17:47:01 -07:00
loader_hcl2_test.go config: HCL2 config loader 2017-10-03 17:47:01 -07:00
loader_hcl_test.go config: HCL loader 2014-08-11 09:58:53 -07:00
loader_test.go config: parse description field for outputs 2017-08-28 09:42:03 -07:00
merge.go optimization:Merge slices 2017-09-13 21:08:41 +08:00
merge_test.go config: merge/append for local values 2017-09-01 17:51:13 -07:00
providers.go config: parse provider version constraints into a constraint map 2017-06-09 14:03:59 -07:00
provisioner_enums.go config: parse "when" and "on_failure" on provisioners 2017-01-19 18:10:21 -08:00
raw_config.go config: allow a HCL2 body to piggy-back on a RawConfig 2017-10-03 17:47:01 -07:00
raw_config_test.go config: validate that RawConfig.Copy doesn't copy the interpolated 2016-12-02 13:25:32 -05:00
resource_mode.go config: "ResourceMode" concept for resources 2016-05-14 08:26:35 -07:00
resource_mode_string.go Fix stringer comments (#15069) 2017-06-05 10:17:35 +01:00
testing.go Use t.Helper() in our test helpers 2017-08-28 09:59:30 -07:00