Versions in this module Expand all Collapse all v1 v1.0.7 Sep 11, 2021 Changes in this version + func IsEmptyDir(path string) (bool, error) + func IsIgnoredFile(name string) bool + func MergeBodies(base, override hcl.Body) hcl.Body + func ParseProviderConfigCompact(traversal hcl.Traversal) (addrs.LocalProviderConfig, tfdiags.Diagnostics) + func ParseProviderConfigCompactStr(str string) (addrs.LocalProviderConfig, tfdiags.Diagnostics) + func SynthBody(filename string, values map[string]cty.Value) hcl.Body + type Backend struct + Config hcl.Body + DeclRange hcl.Range + Type string + TypeRange hcl.Range + func (b *Backend) Hash(schema *configschema.Block) int + type Config struct + CallRange hcl.Range + Children map[string]*Config + Module *Module + Parent *Config + Path addrs.Module + Root *Config + SourceAddr string + SourceAddrRange hcl.Range + Version *version.Version + func BuildConfig(root *Module, walker ModuleWalker) (*Config, hcl.Diagnostics) + func NewEmptyConfig() *Config + func (c *Config) AllModules() []*Config + func (c *Config) DeepEach(cb func(c *Config)) + func (c *Config) Depth() int + func (c *Config) Descendent(path addrs.Module) *Config + func (c *Config) DescendentForInstance(path addrs.ModuleInstance) *Config + func (c *Config) ProviderForConfigAddr(addr addrs.LocalProviderConfig) addrs.Provider + func (c *Config) ProviderRequirements() (getproviders.Requirements, hcl.Diagnostics) + func (c *Config) ProviderRequirementsByModule() (*ModuleRequirements, hcl.Diagnostics) + func (c *Config) ProviderRequirementsShallow() (getproviders.Requirements, hcl.Diagnostics) + func (c *Config) ProviderTypes() []addrs.Provider + func (c *Config) ResolveAbsProviderAddr(addr addrs.ProviderConfig, inModule addrs.Module) addrs.AbsProviderConfig + type Connection struct + Config hcl.Body + DeclRange hcl.Range + type File struct + ActiveExperiments experiments.Set + Backends []*Backend + CoreVersionConstraints []VersionConstraint + DataResources []*Resource + Locals []*Local + ManagedResources []*Resource + ModuleCalls []*ModuleCall + Outputs []*Output + ProviderConfigs []*Provider + ProviderMetas []*ProviderMeta + RequiredProviders []*RequiredProviders + Variables []*Variable + type Local struct + DeclRange hcl.Range + Expr hcl.Expression + Name string + func (l *Local) Addr() addrs.LocalValue + type ManagedResource struct + Connection *Connection + CreateBeforeDestroy bool + CreateBeforeDestroySet bool + IgnoreAllChanges bool + IgnoreChanges []hcl.Traversal + PreventDestroy bool + PreventDestroySet bool + Provisioners []*Provisioner + type Module struct + ActiveExperiments experiments.Set + Backend *Backend + CoreVersionConstraints []VersionConstraint + DataResources map[string]*Resource + Locals map[string]*Local + ManagedResources map[string]*Resource + ModuleCalls map[string]*ModuleCall + Outputs map[string]*Output + ProviderConfigs map[string]*Provider + ProviderLocalNames map[addrs.Provider]string + ProviderMetas map[addrs.Provider]*ProviderMeta + ProviderRequirements *RequiredProviders + SourceDir string + Variables map[string]*Variable + func NewModule(primaryFiles, overrideFiles []*File) (*Module, hcl.Diagnostics) + func (m *Module) ImpliedProviderForUnqualifiedType(pType string) addrs.Provider + func (m *Module) LocalNameForProvider(p addrs.Provider) string + func (m *Module) ProviderForLocalConfig(pc addrs.LocalProviderConfig) addrs.Provider + func (m *Module) ResourceByAddr(addr addrs.Resource) *Resource + type ModuleCall struct + Config hcl.Body + Count hcl.Expression + DeclRange hcl.Range + DependsOn []hcl.Traversal + ForEach hcl.Expression + Name string + Providers []PassedProviderConfig + SourceAddr string + SourceAddrRange hcl.Range + SourceSet bool + Version VersionConstraint + type ModuleRequest struct + CallRange hcl.Range + Name string + Parent *Config + Path addrs.Module + SourceAddr string + SourceAddrRange hcl.Range + VersionConstraint VersionConstraint + type ModuleRequirements struct + Children map[string]*ModuleRequirements + Name string + Requirements getproviders.Requirements + SourceAddr string + SourceDir string + type ModuleWalker interface + LoadModule func(req *ModuleRequest) (*Module, *version.Version, hcl.Diagnostics) + var DisabledModuleWalker ModuleWalker + type ModuleWalkerFunc func(req *ModuleRequest) (*Module, *version.Version, hcl.Diagnostics) + func (f ModuleWalkerFunc) LoadModule(req *ModuleRequest) (*Module, *version.Version, hcl.Diagnostics) + type Output struct + DeclRange hcl.Range + DependsOn []hcl.Traversal + Description string + DescriptionSet bool + Expr hcl.Expression + Name string + Sensitive bool + SensitiveSet bool + type Parser struct + func NewParser(fs afero.Fs) *Parser + func (p *Parser) ForceFileSource(filename string, src []byte) + func (p *Parser) IsConfigDir(path string) bool + func (p *Parser) LoadConfigDir(path string) (*Module, hcl.Diagnostics) + func (p *Parser) LoadConfigFile(path string) (*File, hcl.Diagnostics) + func (p *Parser) LoadConfigFileOverride(path string) (*File, hcl.Diagnostics) + func (p *Parser) LoadHCLFile(path string) (hcl.Body, hcl.Diagnostics) + func (p *Parser) LoadValuesFile(path string) (map[string]cty.Value, hcl.Diagnostics) + func (p *Parser) Sources() map[string][]byte + func (p Parser) ConfigDirFiles(dir string) (primary, override []string, diags hcl.Diagnostics) + type PassedProviderConfig struct + InChild *ProviderConfigRef + InParent *ProviderConfigRef + type Provider struct + Alias string + AliasRange *hcl.Range + Config hcl.Body + DeclRange hcl.Range + Name string + NameRange hcl.Range + Version VersionConstraint + func (p *Provider) Addr() addrs.LocalProviderConfig + type ProviderConfigRef struct + Alias string + AliasRange *hcl.Range + Name string + NameRange hcl.Range + func (r *ProviderConfigRef) Addr() addrs.LocalProviderConfig + func (r *ProviderConfigRef) String() string + type ProviderMeta struct + Config hcl.Body + DeclRange hcl.Range + Provider string + ProviderRange hcl.Range + type Provisioner struct + Config hcl.Body + Connection *Connection + DeclRange hcl.Range + OnFailure ProvisionerOnFailure + Type string + TypeRange hcl.Range + When ProvisionerWhen + type ProvisionerOnFailure int + const ProvisionerOnFailureContinue + const ProvisionerOnFailureFail + const ProvisionerOnFailureInvalid + func (i ProvisionerOnFailure) String() string + type ProvisionerWhen int + const ProvisionerWhenCreate + const ProvisionerWhenDestroy + const ProvisionerWhenInvalid + func (i ProvisionerWhen) String() string + type RequiredProvider struct + Aliases []addrs.LocalProviderConfig + DeclRange hcl.Range + Name string + Requirement VersionConstraint + Source string + Type addrs.Provider + type RequiredProviders struct + DeclRange hcl.Range + RequiredProviders map[string]*RequiredProvider + type Resource struct + Config hcl.Body + Count hcl.Expression + DeclRange hcl.Range + DependsOn []hcl.Traversal + ForEach hcl.Expression + Managed *ManagedResource + Mode addrs.ResourceMode + Name string + Provider addrs.Provider + ProviderConfigRef *ProviderConfigRef + Type string + TypeRange hcl.Range + func (r *Resource) Addr() addrs.Resource + func (r *Resource) ProviderConfigAddr() addrs.LocalProviderConfig + type Variable struct + DeclRange hcl.Range + Default cty.Value + Description string + DescriptionSet bool + Name string + ParsingMode VariableParsingMode + Sensitive bool + SensitiveSet bool + Type cty.Type + Validations []*VariableValidation + func (v *Variable) Required() bool + type VariableParsingMode rune + const VariableParseHCL + const VariableParseLiteral + func (m VariableParsingMode) Parse(name, value string) (cty.Value, hcl.Diagnostics) + type VariableTypeHint rune + const TypeHintList + const TypeHintMap + const TypeHintNone + const TypeHintString + func (i VariableTypeHint) String() string + type VariableValidation struct + Condition hcl.Expression + DeclRange hcl.Range + ErrorMessage string + type VersionConstraint struct + DeclRange hcl.Range + Required version.Constraints