terraform/states
Kristin Laemmert 47a16b0937
addrs: embed Provider in AbsProviderConfig instead of Type
a large refactor to addrs.AbsProviderConfig, embedding the addrs.Provider instead of a Type string. I've added and updated tests, added some Legacy functions to support older state formats and shims, and added a normalization step when reading v4 (current) state files (not the added tests under states/statefile/roundtrip which work with both current and legacy-style AbsProviderConfig strings).

The remaining 'fixme' and 'todo' comments are mostly going to be addressed in a subsequent PR and involve looking up a given local provider config's FQN. This is fine for now as we are only working with default assumption.
2020-02-13 15:32:58 -05:00
..
statefile addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
statemgr addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
doc.go
eachmode_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
instance_generation.go
instance_object.go change state dependencies to AbsResource addrs 2019-10-30 17:25:53 -04:00
instance_object_src.go read+write the new dependencies in the statefile 2019-11-07 17:49:03 -05:00
module.go Update comment 2019-12-04 12:08:34 -05:00
objectstatus_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
output_value.go
resource.go Add a new method cause doing things in module is weird 2019-12-03 14:27:18 -05:00
resource_test.go states: Fix TestResourceInstanceDeposeCurrentObject 2018-10-16 19:14:11 -07:00
state.go command: Allow tests to run to completion without panics or hangs 2018-10-16 19:14:11 -07:00
state_deepcopy.go read+write the new dependencies in the statefile 2019-11-07 17:49:03 -05:00
state_equal.go
state_string.go move hcl2shim package to configs 2019-08-06 19:58:58 -04:00
state_test.go addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
sync.go Cleanup 2019-12-03 14:27:18 -05:00