terraform/backend/remote
Kristin Laemmert 6621501ae3
state: remove deprecated state package (#25490)
Most of the state package has been deprecated by the states package.
This PR replaces all the references to the old state package that
can be done simply - the low-hanging fruit.

* states: move state.Locker to statemgr

The state.Locker interface was a wrapper around a statemgr.Full, so
moving this was relatively straightforward.

* command: remove unnecessary use of state package for writing local terraform state files

* move state.LocalState into terraform package

state.LocalState is responsible for managing terraform.States, so it
made sense (to me) to move it into the terraform package.

* slight change of heart: move state.LocalState into clistate instead of
terraform
2020-08-11 11:43:01 -04:00
..
testdata clean up go mod for go-tfe 2019-09-27 14:16:41 -07:00
backend.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
backend_apply.go prevent targeting for unsupported API versions 2020-05-15 16:57:18 -07:00
backend_apply_test.go * backend/local: push responsibility for unlocking state into individual operations 2020-08-11 11:23:42 -04:00
backend_common.go replace status string with go-tfe enum 2020-05-19 11:14:36 -07:00
backend_context.go vendor: go get github.com/hashicorp/go-tfe@v0.8.0 2020-05-15 15:58:01 -07:00
backend_context_test.go * backend/local: push responsibility for unlocking state into individual operations 2020-08-11 11:23:42 -04:00
backend_mock.go backend/remote: Handle cost estimation skipped due to targeting 2020-05-18 15:12:44 -07:00
backend_plan.go prevent targeting for unsupported API versions 2020-05-15 16:57:18 -07:00
backend_plan_test.go * backend/local: push responsibility for unlocking state into individual operations 2020-08-11 11:23:42 -04:00
backend_state.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
backend_state_test.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
backend_test.go backend/remote: do not panic if PrepareConfig or Configure receive null (#25135) 2020-06-05 09:11:44 -04:00
cli.go Change how to fall back from remote to local backend 2018-11-20 22:25:52 +01:00
colorize.go backend/remote: implement the Local interface 2018-11-26 20:50:25 +01:00
remote_test.go Change how to fall back from remote to local backend 2018-11-20 22:25:52 +01:00
testing.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00