state

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 20 Imported by: 3

Documentation

Index

Constants

View Source
const TerraformStateReaderSupplier = "tfstate"

Variables

View Source
var (
	// UnsupportedVersionConstraints is an array of version constraints known to be unsupported.
	// If a given state matches one of these, all resources of the related state will be ignored and marked as drifted.
	UnsupportedVersionConstraints = []string{"<0.11.0"}
)

Functions

func IsVersionSupported

func IsVersionSupported(rawVersion string) (bool, error)

Types

type StateReadingAlert

type StateReadingAlert struct {
	// contains filtered or unexported fields
}

func NewStateReadingAlert

func NewStateReadingAlert(key string, err error) *StateReadingAlert

func (*StateReadingAlert) Message

func (s *StateReadingAlert) Message() string

func (*StateReadingAlert) ShouldIgnoreResource

func (s *StateReadingAlert) ShouldIgnoreResource() bool

type TerraformStateReader

type TerraformStateReader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(config config.SupplierConfig, library *terraform.ProviderLibrary, backendOpts *backend.Options, progress output.Progress, alerter *alerter.Alerter, deserializer *resource.Deserializer, filter filter.Filter) (*TerraformStateReader, error)

func (*TerraformStateReader) Resources

func (r *TerraformStateReader) Resources() ([]*resource.Resource, error)

func (*TerraformStateReader) SourceCount added in v0.20.0

func (r *TerraformStateReader) SourceCount() uint

type UnsupportedVersionError

type UnsupportedVersionError struct {
	StateFile string
	Version   *version.Version
}

func (*UnsupportedVersionError) Error

func (u *UnsupportedVersionError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL