terraform/state
Martin Atkins a3403f2766 terraform: Ugly huge change to weave in new State and Plan types
Due to how often the state and plan types are referenced throughout
Terraform, there isn't a great way to switch them out gradually. As a
consequence, this huge commit gets us from the old world to a _compilable_
new world, but still has a large number of known test failures due to
key functionality being stubbed out.

The stubs here are for anything that interacts with providers, since we
now need to do the follow-up work to similarly replace the old
terraform.ResourceProvider interface with its replacement in the new
"providers" package. That work, along with work to fix the remaining
failing tests, will follow in subsequent commits.

The aim here was to replace all references to terraform.State and its
downstream types with states.State, terraform.Plan with plans.Plan,
state.State with statemgr.State, and switch to the new implementations of
the state and plan file formats. However, due to the number of times those
types are used, this also ended up affecting numerous other parts of core
such as terraform.Hook, the backend.Backend interface, and most of the CLI
commands.

Just as with 5861dbf3fc49b19587a31816eb06f511ab861bb4 before, I apologize
in advance to the person who inevitably just found this huge commit while
spelunking through the commit history.
2018-10-16 19:11:09 -07:00
..
remote terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07: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
backup_test.go add mutexes to Local, Backup, and InmemState 2017-05-25 11:20:52 -04:00
inmem.go state: more robust handling of state Serial 2017-07-05 12:34:30 -07:00
inmem_test.go test LockWithContext 2017-04-03 11:50:19 -04: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
local_test.go add failing test for windows state locks 2018-03-19 17:09:53 -04: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 remove Sleep from TestLockWithContext 2017-04-03 14:46:22 -04:00
testing.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00