state

package
v0.0.0-...-3750d73 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

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

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

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