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 ¶
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
Click to show internal directories.
Click to hide internal directories.