state

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 21 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) Resource added in v0.38.0

func (s *StateReadingAlert) Resource() *resource.Resource

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