terraform/state
Martin Atkins 94510bc1b9 states/statemgr: Migrate, Import, and Export functions
In our recent refactoring of the state manager interfaces we made serial
and lineage management the responsibility of the state managers
themselves, not exposing them at all to most callers, and allowing for
simple state managers that don't implement them at all.

However, we do have some specific cases where we need to preserve these
properly when available, such as migration between backends, and the
"terraform state push" and "terraform state pull" commands.

These new functions and their associated optional interface allow the
logic here to be captured in one place and access via some simple
calls. Separating this from the main interface leaves things simple for
the normal uses of state managers.

Since these functions are mostly just thin wrappers around other
functionality, they are not yet well-tested directly, but will be
indirectly tested through the tests of their callers. A subsequent commit
will add more unit tests here.
2018-11-19 09:02:35 -08:00
..
remote states/statemgr: Migrate, Import, and Export functions 2018-11-19 09:02:35 -08:00
testdata Use NewLockInfo to get a pre-populated value 2017-02-15 14:41:55 -05:00
backup.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
inmem.go state: more robust handling of state Serial 2017-07-05 12:34:30 -07:00
local.go Merge pull request #17431 from oscr/use-seekstart 2018-04-04 15:27:24 -04:00
local_lock_unix.go Use io.SeekStart instead of deprecated os.SEEK_SET 2018-02-25 23:11:40 +01:00
local_lock_windows.go fix windows locking 2017-02-17 13:29:48 -05:00
lock.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
lock_test.go backend/consul: support "lock" option to disable locking 2017-03-14 17:59:10 -07:00
state.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
state_test.go state: Remove tests for obsolete components 2018-10-16 19:14:11 -07:00
testing.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00