Versions in this module Expand all Collapse all v1 v1.4.0 Mar 10, 2023 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 CheckRule struct + Condition hcl.Expression + DeclRange hcl.Range + ErrorMessage hcl.Expression + type CloudConfig struct + Config hcl.Body + DeclRange hcl.Range + func (c *CloudConfig) ToBackendConfig() Backend + type Config struct + CallRange hcl.Range + Children map[string]*Config + Module *Module + Parent *Config + Path addrs.Module + Root *Config + SourceAddr addrs.ModuleSource + SourceAddrRange hcl.Range + SourceAddrRaw string + 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) EntersNewPackage() bool + 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 + func (c *Config) VerifyDependencySelections(depLocks *depsfile.Locks) []error + type Connection struct + Config hcl.Body + DeclRange hcl.Range + type File struct + ActiveExperiments experiments.Set + Backends []*Backend + CloudConfigs []*CloudConfig + CoreVersionConstraints []VersionConstraint + DataResources []*Resource + Locals []*Local + ManagedResources []*Resource + ModuleCalls []*ModuleCall + Moved []*Moved + 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 + CloudConfig *CloudConfig + CoreVersionConstraints []VersionConstraint + DataResources map[string]*Resource + Locals map[string]*Local + ManagedResources map[string]*Resource + ModuleCalls map[string]*ModuleCall + Moved []*Moved + 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 addrs.ModuleSource + SourceAddrRange hcl.Range + SourceAddrRaw string + SourceSet bool + Version VersionConstraint + func (mc *ModuleCall) EntersNewPackage() bool + type ModuleRequest struct + CallRange hcl.Range + Name string + Parent *Config + Path addrs.Module + SourceAddr addrs.ModuleSource + SourceAddrRange hcl.Range + VersionConstraint VersionConstraint + type ModuleRequirements struct + Children map[string]*ModuleRequirements + Name string + Requirements getproviders.Requirements + SourceAddr addrs.ModuleSource + 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 Moved struct + DeclRange hcl.Range + From *addrs.MoveEndpoint + To *addrs.MoveEndpoint + type Output struct + DeclRange hcl.Range + DependsOn []hcl.Traversal + Description string + DescriptionSet bool + Expr hcl.Expression + Name string + Preconditions []*CheckRule + Sensitive bool + SensitiveSet bool + func (o *Output) Addr() addrs.OutputValue + type Parser struct + func NewParser(fs afero.Fs) *Parser + func (p *Parser) AllowLanguageExperiments(allowed bool) + 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 + Postconditions []*CheckRule + Preconditions []*CheckRule + Provider addrs.Provider + ProviderConfigRef *ProviderConfigRef + TriggersReplacement []hcl.Expression + Type string + TypeRange hcl.Range + func (r *Resource) Addr() addrs.Resource + func (r *Resource) HasCustomConditions() bool + func (r *Resource) ProviderConfigAddr() addrs.LocalProviderConfig + type Variable struct + ConstraintType cty.Type + DeclRange hcl.Range + Default cty.Value + Description string + DescriptionSet bool + Name string + Nullable bool + NullableSet bool + ParsingMode VariableParsingMode + Sensitive bool + SensitiveSet bool + Type cty.Type + TypeDefaults *typeexpr.Defaults + Validations []*CheckRule + func (v *Variable) Addr() addrs.InputVariable + 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 VersionConstraint struct + DeclRange hcl.Range + Required version.Constraints