terraform/config
Sander van Harmelen c62370f9e9 Add a function to load JSON directly
Without this 12 line function it’s impossible to use any of the
Terraform code without the need for having the files on disk. As more
and more people are using (parts of) Terraform in other software, this
seems to be a very welcome addition. It has no negative impact on
Terraform itself whatsoever (the function is never called), but it
opens up a lot of other use cases.

Next to the single new function, I renamed the existing function (and
related tests) to better reflect what the function does. So now there
is a `LoadDir` function which calls `LoadFile` for each file, which
kind of made sense to me, especially when now adding a `LoadJSON`
function as well.

But of course if the rename is a problem, I can revert that part as
it’s not related to the added `LoadJSON` function.

Thanks!
2015-06-23 16:15:26 +02:00
..
lang Condense switch fallthroughs into expr lists 2015-05-26 21:52:36 -04:00
module config: add module raw configs to InterpolatedConfigs [GH-1448] 2015-04-29 17:12:28 -07:00
test-fixtures config: error in validation if module has self variable 2015-04-22 10:39:07 +02:00
append.go config: allow atlas block 2015-03-24 13:30:22 -07:00
append_test.go config: allow atlas block 2015-03-24 13:30:22 -07:00
config.go config: add module raw configs to InterpolatedConfigs [GH-1448] 2015-04-29 17:12:28 -07:00
config_string.go config: add Config method 2014-10-02 11:34:08 -07:00
config_test.go Add a function to load JSON directly 2015-06-23 16:15:26 +02:00
config_tree.go config: make Merge an exported func 2014-07-18 17:05:22 -07:00
import_tree.go Condense switch fallthroughs into expr lists 2015-05-26 21:52:36 -04:00
interpolate.go config: self variables 2015-02-23 14:34:25 -08:00
interpolate_funcs.go core: keys() and values() funcs for map variables 2015-06-02 16:49:51 -05:00
interpolate_funcs_test.go core: keys() and values() funcs for map variables 2015-06-02 16:49:51 -05:00
interpolate_test.go config: self variables 2015-02-23 14:34:25 -08:00
interpolate_walk.go config: fix minor comment errors 2015-05-12 16:11:19 -07:00
interpolate_walk_test.go config: if any var is computed, the entire interpolation is computed 2015-02-27 22:47:43 -08:00
lang.go config/lang; missed file 2015-01-15 09:40:36 -08:00
loader.go Add a function to load JSON directly 2015-06-23 16:15:26 +02:00
loader_hcl.go Support for multiple providers of the same type 2015-04-20 14:14:34 -07:00
loader_hcl_test.go config: HCL loader 2014-08-11 09:58:53 -07:00
loader_test.go Add a function to load JSON directly 2015-06-23 16:15:26 +02:00
merge.go config: allow atlas block 2015-03-24 13:30:22 -07:00
merge_test.go config: allow atlas block 2015-03-24 13:30:22 -07:00
raw_config.go core: keys() and values() funcs for map variables 2015-06-02 16:49:51 -05:00
raw_config_test.go config: if any var is computed, the entire interpolation is computed 2015-02-27 22:47:43 -08:00