Versions in this module Expand all Collapse all v1 v1.0.1 Mar 22, 2024 Changes in this version + var ErrNoKnownProvider = errors.New("terraform providers are not yet supported") + var ErrNoProviders = errors.New("no valid providers found") + var ErrNoQueries = errors.New("no terraform entities found, looks empty") + func ExtractQueriesFromHCL(fs afero.Fs, providerInitializers []ProviderInitializer, modPath string, ...) ([]query.Resource, string, error) + type Configuration struct + ProviderConfig map[string]ProviderConfig + RootModule ConfigurationModule + type ConfigurationModule struct + ModuleCalls map[string]struct{ ... } + Resources []ConfigurationResource + Variables map[string]Variable + type ConfigurationResource struct + Address string + Expressions map[string]interface{} + ProviderConfigKey string + type Module struct + Address string + ChildModules []*Module + Resources []Resource + type Plan struct + Configuration Configuration + PlannedValues Values + PriorState *State + Variables map[string]Variable + func NewPlan(providerInitializers ...ProviderInitializer) *Plan + func (p *Plan) ExtractPlannedQueries() ([]query.Resource, error) + func (p *Plan) ExtractPriorQueries() ([]query.Resource, error) + func (p *Plan) Read(r io.Reader) error + func (p *Plan) SetUsage(u usage.Usage) + type Provider interface + Name func() string + ResourceComponents func(rss map[string]Resource, res Resource) []query.Component + type ProviderConfig struct + Alias string + Expressions map[string]ProviderConfigExpression + Name string + func (cfg *ProviderConfig) UnmarshalJSON(b []byte) error + type ProviderConfigExpression struct + ConstantValue string + References []string + type ProviderInitializer struct + MatchNames []string + Provider func(values map[string]interface{}) (Provider, error) + type Resource struct + Address string + Index interface{} + Mode string + Name string + ProviderName string + Type string + Values map[string]interface{} + type State struct + Values Values + type Values struct + RootModule Module + type Variable struct + Value interface{}