# Packages

Package statefile deals with the file format used to serialize states for persistent storage and then deserialize them into memory again later.

# Functions

BuildState is a helper -- primarily intended for tests -- to build a state using imperative code against the StateSync type while still acting as an expression of type *State to assign into a containing struct.
LegacyInstanceObjectID is a helper for extracting an object id value from an instance object in a way that approximates how we used to do this for the old state types.
NewDeposedKey generates a pseudo-random deposed key.
NewModule constructs an empty module state for the given module address.
NewResourceInstance constructs and returns a new ResourceInstance, ready to use.
NewState constructs a minimal empty state, containing an empty root module.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
NotDeposed is a special invalid value of DeposedKey that is used to represent the absense of a deposed key.
ObjectPlanned is a special object status used only for the transient placeholder objects we place into state during the refresh and plan walks to stand in for objects that will be created during apply.
ObjectReady is an object status for an object that is ready to use.
ObjectTainted is an object status representing an object that is in an unrecoverable bad state due to a partial failure during a create, update, or delete operation.

# Variables

CurrentGen is the Generation representing the currently-active object for a resource instance.

# Structs

Module is a container for the states of objects within a particular module.
OutputValue represents the state of a particular output value.
Resource represents the state of a resource.
ResourceInstance represents the state of a particular instance of a resource.
ResourceInstanceObject is the local representation of a specific remote object associated with a resource instance.
ResourceInstanceObjectSrc is a not-fully-decoded version of ResourceInstanceObject.
State is the top-level type of a Terraform state.
SyncState is a wrapper around State that provides concurrency-safe access to various common operations that occur during a Terraform graph walk, or other similar concurrent contexts.

# Interfaces

Generation is used to represent multiple objects in a succession of objects represented by a single resource instance address.

# Type aliases

DeposedKey is a 8-character hex string used to uniquely identify deposed instance objects in the state.
EachMode specifies the multi-instance mode for a resource.
ObjectStatus represents the status of a RemoteObject.