Versions in this module Expand all Collapse all v1 v1.0.7 Sep 11, 2021 Changes in this version + const BuiltInProviderHost + const BuiltInProviderNamespace + const DefaultRegistryHost + const LegacyProviderNamespace + const Self + func InstanceKeyLess(i, j InstanceKey) bool + func IsProviderPartNormalized(str string) (bool, error) + func MustParseProviderPart(given string) string + func ParseProviderPart(given string) (string, error) + type AbsInputVariableInstance struct + Module ModuleInstance + Variable InputVariable + func (v AbsInputVariableInstance) String() string + type AbsLocalValue struct + LocalValue LocalValue + Module ModuleInstance + func (v AbsLocalValue) String() string + type AbsModuleCallOutput struct + Call ModuleCallInstance + Name string + func (co AbsModuleCallOutput) AbsOutputValue(caller ModuleInstance) AbsOutputValue + func (co AbsModuleCallOutput) ModuleCallOutput() ModuleCallOutput + func (co AbsModuleCallOutput) String() string + type AbsOutputValue struct + Module ModuleInstance + OutputValue OutputValue + func (v AbsOutputValue) Equal(o AbsOutputValue) bool + func (v AbsOutputValue) ModuleCallOutput() (ModuleInstance, AbsModuleCallOutput) + func (v AbsOutputValue) String() string + type AbsProviderConfig struct + Alias string + Module Module + Provider Provider + func ParseAbsProviderConfig(traversal hcl.Traversal) (AbsProviderConfig, tfdiags.Diagnostics) + func ParseAbsProviderConfigStr(str string) (AbsProviderConfig, tfdiags.Diagnostics) + func ParseLegacyAbsProviderConfig(traversal hcl.Traversal) (AbsProviderConfig, tfdiags.Diagnostics) + func ParseLegacyAbsProviderConfigStr(str string) (AbsProviderConfig, tfdiags.Diagnostics) + func (pc AbsProviderConfig) Inherited() (AbsProviderConfig, bool) + func (pc AbsProviderConfig) LegacyString() string + func (pc AbsProviderConfig) String() string + type AbsResource struct + Module ModuleInstance + Resource Resource + func ParseAbsResource(traversal hcl.Traversal) (AbsResource, tfdiags.Diagnostics) + func ParseAbsResourceStr(str string) (AbsResource, tfdiags.Diagnostics) + func (r AbsResource) Config() ConfigResource + func (r AbsResource) Equal(o AbsResource) bool + func (r AbsResource) Instance(key InstanceKey) AbsResourceInstance + func (r AbsResource) String() string + func (r AbsResource) TargetContains(other Targetable) bool + type AbsResourceInstance struct + Module ModuleInstance + Resource ResourceInstance + func ParseAbsResourceInstance(traversal hcl.Traversal) (AbsResourceInstance, tfdiags.Diagnostics) + func ParseAbsResourceInstanceStr(str string) (AbsResourceInstance, tfdiags.Diagnostics) + func (r AbsResourceInstance) ContainingResource() AbsResource + func (r AbsResourceInstance) Equal(o AbsResourceInstance) bool + func (r AbsResourceInstance) Less(o AbsResourceInstance) bool + func (r AbsResourceInstance) String() string + func (r AbsResourceInstance) TargetContains(other Targetable) bool + type ConfigResource struct + Module Module + Resource Resource + func (r ConfigResource) Absolute(module ModuleInstance) AbsResource + func (r ConfigResource) Equal(o ConfigResource) bool + func (r ConfigResource) String() string + func (r ConfigResource) TargetContains(other Targetable) bool + type CountAttr struct + Name string + func (ca CountAttr) String() string + type ForEachAttr struct + Name string + func (f ForEachAttr) String() string + type InputVariable struct + Name string + func (v InputVariable) Absolute(m ModuleInstance) AbsInputVariableInstance + func (v InputVariable) String() string + type InstanceKey interface + String func() string + Value func() cty.Value + var NoKey InstanceKey + func ParseInstanceKey(key cty.Value) (InstanceKey, error) + type InstanceKeyType rune + const IntKeyType + const NoKeyType + const StringKeyType + type IntKey int + func (k IntKey) String() string + func (k IntKey) Value() cty.Value + type LocalProviderConfig struct + Alias string + LocalName string + func NewDefaultLocalProviderConfig(LocalNameName string) LocalProviderConfig + func (pc LocalProviderConfig) String() string + func (pc LocalProviderConfig) StringCompact() string + type LocalValue struct + Name string + func (v LocalValue) Absolute(m ModuleInstance) AbsLocalValue + func (v LocalValue) String() string + type Module []string + var RootModule Module + func (m Module) Ancestors() []Module + func (m Module) Call() (Module, ModuleCall) + func (m Module) Child(name string) Module + func (m Module) Equal(other Module) bool + func (m Module) IsRoot() bool + func (m Module) Parent() Module + func (m Module) Resource(mode ResourceMode, typeName string, name string) ConfigResource + func (m Module) String() string + func (m Module) TargetContains(other Targetable) bool + func (m Module) UnkeyedInstanceShim() ModuleInstance + type ModuleCall struct + Name string + func (c ModuleCall) Instance(key InstanceKey) ModuleCallInstance + func (c ModuleCall) String() string + type ModuleCallInstance struct + Call ModuleCall + Key InstanceKey + func (c ModuleCallInstance) ModuleInstance(caller ModuleInstance) ModuleInstance + func (c ModuleCallInstance) Output(name string) AbsModuleCallOutput + func (c ModuleCallInstance) String() string + type ModuleCallOutput struct + Call ModuleCall + Name string + func (m ModuleCallOutput) String() string + type ModuleInstance []ModuleInstanceStep + var RootModuleInstance ModuleInstance + func ParseModuleInstance(traversal hcl.Traversal) (ModuleInstance, tfdiags.Diagnostics) + func ParseModuleInstanceStr(str string) (ModuleInstance, tfdiags.Diagnostics) + func (m ModuleInstance) Ancestors() []ModuleInstance + func (m ModuleInstance) Call() (ModuleInstance, ModuleCall) + func (m ModuleInstance) CallInstance() (ModuleInstance, ModuleCallInstance) + func (m ModuleInstance) Child(name string, key InstanceKey) ModuleInstance + func (m ModuleInstance) Equal(o ModuleInstance) bool + func (m ModuleInstance) InputVariable(name string) AbsInputVariableInstance + func (m ModuleInstance) IsAncestor(o ModuleInstance) bool + func (m ModuleInstance) IsRoot() bool + func (m ModuleInstance) Less(o ModuleInstance) bool + func (m ModuleInstance) LocalValue(name string) AbsLocalValue + func (m ModuleInstance) Module() Module + func (m ModuleInstance) OutputValue(name string) AbsOutputValue + func (m ModuleInstance) Parent() ModuleInstance + func (m ModuleInstance) ProviderConfigAliased(provider Provider, alias string) AbsProviderConfig + func (m ModuleInstance) ProviderConfigDefault(provider Provider) AbsProviderConfig + func (m ModuleInstance) Resource(mode ResourceMode, typeName string, name string) AbsResource + func (m ModuleInstance) ResourceInstance(mode ResourceMode, typeName string, name string, key InstanceKey) AbsResourceInstance + func (m ModuleInstance) String() string + func (m ModuleInstance) TargetContains(other Targetable) bool + type ModuleInstanceStep struct + InstanceKey InstanceKey + Name string + func (s ModuleInstanceStep) String() string + type OutputValue struct + Name string + func (v OutputValue) Absolute(m ModuleInstance) AbsOutputValue + func (v OutputValue) String() string + type PathAttr struct + Name string + func (pa PathAttr) String() string + type Provider struct + Hostname svchost.Hostname + Namespace string + Type string + func ImpliedProviderForUnqualifiedType(typeName string) Provider + func MustParseProviderSourceString(str string) Provider + func NewBuiltInProvider(name string) Provider + func NewDefaultProvider(name string) Provider + func NewLegacyProvider(name string) Provider + func NewProvider(hostname svchost.Hostname, namespace, typeName string) Provider + func ParseProviderSourceString(str string) (Provider, tfdiags.Diagnostics) + func (pt Provider) Equals(other Provider) bool + func (pt Provider) ForDisplay() string + func (pt Provider) IsBuiltIn() bool + func (pt Provider) IsDefault() bool + func (pt Provider) IsLegacy() bool + func (pt Provider) IsZero() bool + func (pt Provider) LegacyString() string + func (pt Provider) LessThan(other Provider) bool + func (pt Provider) String() string + type ProviderConfig interface + type Reference struct + Remaining hcl.Traversal + SourceRange tfdiags.SourceRange + Subject Referenceable + func ParseRef(traversal hcl.Traversal) (*Reference, tfdiags.Diagnostics) + func ParseRefStr(str string) (*Reference, tfdiags.Diagnostics) + type Referenceable interface + String func() string + type Resource struct + Mode ResourceMode + Name string + Type string + func (r Resource) Absolute(module ModuleInstance) AbsResource + func (r Resource) Equal(o Resource) bool + func (r Resource) ImpliedProvider() string + func (r Resource) InModule(module Module) ConfigResource + func (r Resource) Instance(key InstanceKey) ResourceInstance + func (r Resource) Phase(rpt ResourceInstancePhaseType) ResourcePhase + func (r Resource) String() string + type ResourceInstance struct + Key InstanceKey + Resource Resource + func (r ResourceInstance) Absolute(module ModuleInstance) AbsResourceInstance + func (r ResourceInstance) ContainingResource() Resource + func (r ResourceInstance) Equal(o ResourceInstance) bool + func (r ResourceInstance) Phase(rpt ResourceInstancePhaseType) ResourceInstancePhase + func (r ResourceInstance) String() string + type ResourceInstancePhase struct + Phase ResourceInstancePhaseType + ResourceInstance ResourceInstance + func (rp ResourceInstancePhase) ContainingResource() ResourcePhase + func (rp ResourceInstancePhase) String() string + type ResourceInstancePhaseType string + const ResourceInstancePhaseDestroy + const ResourceInstancePhaseDestroyCBD + func (rpt ResourceInstancePhaseType) String() string + type ResourceMode rune + const DataResourceMode + const InvalidResourceMode + const ManagedResourceMode + func (i ResourceMode) String() string + type ResourcePhase struct + Phase ResourceInstancePhaseType + Resource Resource + func (rp ResourcePhase) String() string + type StringKey string + func (k StringKey) String() string + func (k StringKey) Value() cty.Value + type Target struct + SourceRange tfdiags.SourceRange + Subject Targetable + func ParseTarget(traversal hcl.Traversal) (*Target, tfdiags.Diagnostics) + func ParseTargetStr(str string) (*Target, tfdiags.Diagnostics) + type Targetable interface + String func() string + TargetContains func(other Targetable) bool + type TerraformAttr struct + Name string + func (ta TerraformAttr) String() string