Documentation ¶
Overview ¶
Package state provides primitives to list all resources and providers in a Terraform state file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State represents a Terraform state.
func (*State) ProviderNames ¶
ProviderNames returns a list of all provider names (e.g., "aws", "google") in the state. The result of provider names is deduplicated.
func (*State) Resources ¶
func (s *State) Resources(providers map[string]*provider.TerraformProvider) ([]resource.UpdatableResource, error)
Resources returns a list of resources in the state that are managed by one of the given providers.
Data sources are not returned as these are managed outside the scope of the state and therefore shouldn't be destroyed.
Click to show internal directories.
Click to hide internal directories.