terraform/states
Martin Atkins cf6892275a states: Port stringer implementation from terraform.State
Our existing core tests make extensive use of the string representation
of a state for comparison purposes, because they were written before we
began making use of helper packages like "cmp".

To avoid the need to rewrite all of those tests and potentially break
them, we will instead port that particular rendering as closely as
possible but mark it with a comment sternly warning not to use it for
anything new.

We don't want to use this moving forward for a number of reasons, but
most notably:

 - printing out whole before and after state representations makes it
   hard to find a subtle difference in outcome when a test fails, while
   "cmp" can provide us with a real diff.

 - this string serialization is constrained by the capabilities of
   Terraform prior to our new state models, and so it does not
   comprehensively represent all possibilities in the new world.

 - it will probably behave oddly/poorly when given states containing
   features that arrived after it was written, even though I made a
   best effort here to make it do something reasonable in situations
   I thought about.
2018-10-16 18:58:49 -07:00
..
statefile states: separate types for encoded and decoded state objects 2018-10-16 18:58:49 -07:00
statemgr statemgr: Helper funcs RefreshAndRead and WriteAndPersist 2018-10-16 18:58:49 -07:00
doc.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
eachmode_string.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
import.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
instance_generation.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
instance_object.go states: separate types for encoded and decoded state objects 2018-10-16 18:58:49 -07:00
instance_object_src.go states: separate types for encoded and decoded state objects 2018-10-16 18:58:49 -07:00
module.go states: separate types for encoded and decoded state objects 2018-10-16 18:58:49 -07:00
objectstatus_string.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
output_value.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
resource.go states: separate types for encoded and decoded state objects 2018-10-16 18:58:49 -07:00
resource_test.go states: New SyncState type 2018-10-16 18:49:20 -07:00
state.go various: helpers for collecting necessary provider types 2018-10-16 18:50:29 -07:00
state_deepcopy.go states: separate types for encoded and decoded state objects 2018-10-16 18:58:49 -07:00
state_equal.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
state_string.go states: Port stringer implementation from terraform.State 2018-10-16 18:58:49 -07:00
state_test.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
sync.go states: separate types for encoded and decoded state objects 2018-10-16 18:58:49 -07:00