terraform/state/remote
James Nugent 6aac79e194 state: Add support for outputs of multiple types
This commit adds the groundwork for supporting module outputs of types
other than string. In order to do so, the state version is increased
from 1 to 2 (though the "public-facing" state version is actually as the
first state file was binary).

Tests are added to ensure that V2 (1) state is upgraded to V3 (2) state,
though no separate read path is required since the V2 JSON will
unmarshal correctly into the V3 structure.

Outputs in a ModuleState are now of type map[string]interface{}, and a
test covers round-tripping string, []string and map[string]string, which
should cover all of the types in question.

Type switches have been added where necessary to deal with the
interface{} value, but they currently default to panicking when the input
is not a string.
2016-05-10 14:40:12 -04:00
..
artifactory.go add artifactory remote state storage 2015-10-29 09:33:09 -04:00
artifactory_test.go add artifactory remote state storage 2015-10-29 09:33:09 -04:00
atlas.go state/remote/atlas: Use go-rootcerts for certificate loading 2016-05-03 09:52:36 -05:00
atlas_test.go state: Add support for outputs of multiple types 2016-05-10 14:40:12 -04:00
client_inmem.go state: a bunch of state stuff 2015-02-23 15:13:53 -08:00
consul.go Enable `go vet -composites` check and fix warnings. 2016-02-17 11:59:50 -08:00
consul_test.go tests: allow opt-out of remote tests via env var 2016-01-21 15:44:18 -06:00
etcd.go Use cleanhttp for new http clients 2015-10-22 14:23:59 -04:00
etcd_test.go Etcd remote state backend 2015-10-18 23:24:55 +02:00
file.go state/remote: add undocumented file backend for remote state 2015-03-05 13:15:14 -08:00
file_test.go state/remote: add undocumented file backend for remote state 2015-03-05 13:15:14 -08:00
http.go Moving octet-stream to json for remote http backend 2016-03-07 18:39:41 -08:00
http_test.go Use cleanhttp for new http clients 2015-10-22 14:23:59 -04:00
remote.go add artifactory remote state storage 2015-10-29 09:33:09 -04:00
remote_test.go state/remote: passing Atlas state test 2015-02-23 17:56:29 -08:00
s3.go Support standard AWS config in the S3 remote backend. (#5270) 2016-05-06 17:52:18 +01:00
s3_test.go provider/aws: Update source to comply with upstream breaking change 2015-07-28 15:29:46 -05:00
state.go state: deep copies are required 2015-02-23 21:36:58 -08:00
state_test.go state/remote: increment serial properly 2015-02-23 21:30:59 -08:00
swift.go fmt 2015-06-23 22:31:24 -07:00
swift_test.go fmt 2015-06-23 22:31:24 -07:00