terraform/states/statemgr
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
..
testdata statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
doc.go Update doc.go, fix typo (#20529) 2019-03-01 08:59:01 -08:00
filesystem.go states/statemgr: Properly return error when Unlock detects invalid lock id 2019-11-11 15:24:53 -08:00
filesystem_lock_unix.go states/statemgr: Local locks meta is near output path, not input path 2018-11-19 09:02:35 -08:00
filesystem_lock_windows.go states/statemgr: Local locks meta is near output path, not input path 2018-11-19 09:02:35 -08:00
filesystem_test.go states/statemgr: use -mod=vendor to run the state locking helper 2018-12-06 16:50:06 -08:00
helper.go command: Use statemgr.Import and statemgr.Export for state push and pull 2018-11-19 09:02:35 -08:00
lineage.go command/state: update and fix the state push and pull 2018-10-19 19:12:23 +02:00
locker.go states/statemgr: Avoid HTML escaping when printing LockInfo 2019-01-15 10:57:31 +00:00
migrate.go Version tools per Go convention under tools.go 2019-10-17 22:23:39 +02:00
migrate_test.go states/statemgr: Migrate, Import, and Export functions 2018-11-19 09:02:35 -08:00
persistent.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
plan.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
snapshotmetarel_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
statemgr.go statemgr: Helper funcs RefreshAndRead and WriteAndPersist 2018-10-16 18:58:49 -07:00
statemgr_fake.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
statemgr_test.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
testing.go addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
transient.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
transient_inmem.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00