Versions in this module Expand all Collapse all v1 v1.4.0 Mar 10, 2023 Changes in this version + const BuiltInProviderHost + const BuiltInProviderNamespace + const DefaultModuleRegistryHost + const DefaultProviderRegistryHost + const LegacyProviderNamespace + const Self + func Equivalent(a, b T) bool + func InstanceKeyLess(i, j InstanceKey) bool + func IsDefaultProvider(addr Provider) bool + func IsProviderPartNormalized(str string) (bool, error) + func MustParseProviderPart(given string) string + func ParseProviderPart(given string) (string, error) + func ParseProviderSourceString(str string) (tfaddr.Provider, tfdiags.Diagnostics) + 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 AbsModuleCall struct + Call ModuleCall + Module ModuleInstance + func (c AbsModuleCall) Equal(other AbsModuleCall) bool + func (c AbsModuleCall) Instance(key InstanceKey) ModuleInstance + func (c AbsModuleCall) String() string + func (c AbsModuleCall) UniqueKey() UniqueKey + type AbsMoveable interface + String func() string + type AbsMoveableResource interface + AffectedAbsResource func() AbsResource + type AbsOutputValue struct + Module ModuleInstance + OutputValue OutputValue + func ParseAbsOutputValue(traversal hcl.Traversal) (AbsOutputValue, tfdiags.Diagnostics) + func ParseAbsOutputValueStr(str string) (AbsOutputValue, tfdiags.Diagnostics) + func (v AbsOutputValue) Check(t CheckType, i int) Check + func (v AbsOutputValue) CheckableKind() CheckableKind + func (v AbsOutputValue) ConfigCheckable() ConfigCheckable + func (v AbsOutputValue) ConfigOutputValue() ConfigOutputValue + func (v AbsOutputValue) Equal(o AbsOutputValue) bool + func (v AbsOutputValue) ModuleCallOutput() (ModuleInstance, ModuleCallInstanceOutput) + func (v AbsOutputValue) String() string + func (v AbsOutputValue) UniqueKey() UniqueKey + 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) AddrType() TargetableAddrType + func (r AbsResource) AffectedAbsResource() AbsResource + func (r AbsResource) Config() ConfigResource + func (r AbsResource) Equal(o AbsResource) bool + func (r AbsResource) Instance(key InstanceKey) AbsResourceInstance + func (r AbsResource) Less(o AbsResource) bool + func (r AbsResource) MoveDestination(fromMatch, toMatch *MoveEndpointInModule) (AbsResource, bool) + func (r AbsResource) String() string + func (r AbsResource) TargetContains(other Targetable) bool + func (r AbsResource) UniqueKey() UniqueKey + 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) AddrType() TargetableAddrType + func (r AbsResourceInstance) AffectedAbsResource() AbsResource + func (r AbsResourceInstance) Check(t CheckType, i int) Check + func (r AbsResourceInstance) ConfigCheckable() ConfigCheckable + func (r AbsResourceInstance) ConfigResource() ConfigResource + func (r AbsResourceInstance) ContainingResource() AbsResource + func (r AbsResourceInstance) Equal(o AbsResourceInstance) bool + func (r AbsResourceInstance) Less(o AbsResourceInstance) bool + func (r AbsResourceInstance) MoveDestination(fromMatch, toMatch *MoveEndpointInModule) (AbsResourceInstance, bool) + func (r AbsResourceInstance) String() string + func (r AbsResourceInstance) TargetContains(other Targetable) bool + func (r AbsResourceInstance) UniqueKey() UniqueKey + func (v AbsResourceInstance) CheckableKind() CheckableKind + type Check struct + Container Checkable + Index int + Type CheckType + func NewCheck(container Checkable, typ CheckType, index int) Check + func (c Check) String() string + func (c Check) UniqueKey() UniqueKey + type CheckType int + const InvalidCondition + const OutputPrecondition + const ResourcePostcondition + const ResourcePrecondition + func (c CheckType) Description() string + func (i CheckType) String() string + type Checkable interface + Check func(CheckType, int) Check + CheckableKind func() CheckableKind + ConfigCheckable func() ConfigCheckable + String func() string + func ParseCheckableStr(kind CheckableKind, src string) (Checkable, tfdiags.Diagnostics) + type CheckableKind rune + const CheckableKindInvalid + const CheckableOutputValue + const CheckableResource + func (i CheckableKind) String() string + type ConfigCheckable interface + CheckableKind func() CheckableKind + String func() string + type ConfigMoveable interface + type ConfigOutputValue struct + Module Module + OutputValue OutputValue + func (v ConfigOutputValue) CheckableKind() CheckableKind + func (v ConfigOutputValue) String() string + func (v ConfigOutputValue) UniqueKey() UniqueKey + type ConfigResource struct + Module Module + Resource Resource + func (r ConfigResource) Absolute(module ModuleInstance) AbsResource + func (r ConfigResource) AddrType() TargetableAddrType + func (r ConfigResource) Equal(o ConfigResource) bool + func (r ConfigResource) String() string + func (r ConfigResource) TargetContains(other Targetable) bool + func (r ConfigResource) UniqueKey() UniqueKey + func (v ConfigResource) CheckableKind() CheckableKind + type CountAttr struct + Name string + func (ca CountAttr) String() string + func (ca CountAttr) UniqueKey() UniqueKey + type ForEachAttr struct + Name string + func (f ForEachAttr) String() string + func (f ForEachAttr) UniqueKey() UniqueKey + type InputVariable struct + Name string + func (v InputVariable) Absolute(m ModuleInstance) AbsInputVariableInstance + func (v InputVariable) String() string + func (v InputVariable) UniqueKey() UniqueKey + 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 + func (v LocalValue) UniqueKey() UniqueKey + type Map struct + Elems map[UniqueKey]MapElem[K, V] + func MakeMap(initialElems ...MapElem[K, V]) Map[K, V] + func (m Map[K, V]) Elements() []MapElem[K, V] + func (m Map[K, V]) Get(key K) V + func (m Map[K, V]) GetOk(key K) (V, bool) + func (m Map[K, V]) Has(key K) bool + func (m Map[K, V]) Keys() Set[K] + func (m Map[K, V]) Len() int + func (m Map[K, V]) Put(key K, value V) + func (m Map[K, V]) PutElement(elem MapElem[K, V]) + func (m Map[K, V]) Remove(key K) + func (m Map[K, V]) Values() []V + type MapElem struct + Key K + Value V + func MakeMapElem(key K, value V) MapElem[K, V] + type Module []string + var RootModule Module + func (m Module) AddrType() TargetableAddrType + 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) Absolute(moduleAddr ModuleInstance) AbsModuleCall + func (c ModuleCall) Equal(other ModuleCall) bool + func (c ModuleCall) Instance(key InstanceKey) ModuleCallInstance + func (c ModuleCall) String() string + func (c ModuleCall) UniqueKey() UniqueKey + type ModuleCallInstance struct + Call ModuleCall + Key InstanceKey + func (c ModuleCallInstance) Absolute(moduleAddr ModuleInstance) ModuleInstance + func (c ModuleCallInstance) ModuleInstance(caller ModuleInstance) ModuleInstance + func (c ModuleCallInstance) Output(name string) ModuleCallInstanceOutput + func (c ModuleCallInstance) String() string + func (c ModuleCallInstance) UniqueKey() UniqueKey + type ModuleCallInstanceOutput struct + Call ModuleCallInstance + Name string + func (co ModuleCallInstanceOutput) AbsOutputValue(caller ModuleInstance) AbsOutputValue + func (co ModuleCallInstanceOutput) ModuleCallOutput() ModuleCallOutput + func (co ModuleCallInstanceOutput) String() string + func (co ModuleCallInstanceOutput) UniqueKey() UniqueKey + type ModuleCallOutput struct + Call ModuleCall + Name string + func (m ModuleCallOutput) String() string + func (m ModuleCallOutput) UniqueKey() UniqueKey + type ModuleInstance []ModuleInstanceStep + var RootModuleInstance ModuleInstance + func ParseModuleInstance(traversal hcl.Traversal) (ModuleInstance, tfdiags.Diagnostics) + func ParseModuleInstanceStr(str string) (ModuleInstance, tfdiags.Diagnostics) + func (m ModuleInstance) AddrType() TargetableAddrType + 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) ChildCall(name string) AbsModuleCall + func (m ModuleInstance) Equal(o ModuleInstance) bool + func (m ModuleInstance) InputVariable(name string) AbsInputVariableInstance + func (m ModuleInstance) IsAncestor(o ModuleInstance) bool + func (m ModuleInstance) IsDeclaredByCall(other AbsModuleCall) 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) MoveDestination(fromMatch, toMatch *MoveEndpointInModule) (ModuleInstance, bool) + 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 + func (m ModuleInstance) UniqueKey() UniqueKey + type ModuleInstanceStep struct + InstanceKey InstanceKey + Name string + func (s ModuleInstanceStep) String() string + type ModulePackage string + func (p ModulePackage) String() string + type ModuleRegistryPackage = tfaddr.ModulePackage + type ModuleSource interface + ForDisplay func() string + String func() string + func ParseModuleSource(raw string) (ModuleSource, error) + func ParseModuleSourceRegistry(raw string) (ModuleSource, error) + type ModuleSourceLocal string + func (s ModuleSourceLocal) ForDisplay() string + func (s ModuleSourceLocal) String() string + type ModuleSourceRegistry tfaddr.Module + func (s ModuleSourceRegistry) ForDisplay() string + func (s ModuleSourceRegistry) String() string + type ModuleSourceRemote struct + Package ModulePackage + Subdir string + func (s ModuleSourceRemote) ForDisplay() string + func (s ModuleSourceRemote) FromRegistry(given ModuleSourceRegistry) ModuleSourceRemote + func (s ModuleSourceRemote) String() string + type MoveEndpoint struct + SourceRange tfdiags.SourceRange + func ParseMoveEndpoint(traversal hcl.Traversal) (*MoveEndpoint, tfdiags.Diagnostics) + func (e *MoveEndpoint) ConfigMoveable(baseModule Module) ConfigMoveable + func (e *MoveEndpoint) Equal(other *MoveEndpoint) bool + func (e *MoveEndpoint) MightUnifyWith(other *MoveEndpoint) bool + func (e *MoveEndpoint) ObjectKind() MoveEndpointKind + func (e *MoveEndpoint) String() string + type MoveEndpointInModule struct + SourceRange tfdiags.SourceRange + func ImpliedMoveStatementEndpoint(addr AbsResourceInstance, rng tfdiags.SourceRange) *MoveEndpointInModule + func UnifyMoveEndpoints(moduleAddr Module, relFrom, relTo *MoveEndpoint) (modFrom, modTo *MoveEndpointInModule) + func (e *MoveEndpointInModule) CanChainFrom(other *MoveEndpointInModule) bool + func (e *MoveEndpointInModule) Equal(other *MoveEndpointInModule) bool + func (e *MoveEndpointInModule) InModuleInstance(modInst ModuleInstance) AbsMoveable + func (e *MoveEndpointInModule) Module() Module + func (e *MoveEndpointInModule) ModuleCallTraversals() (Module, []ModuleCall) + func (e *MoveEndpointInModule) NestedWithin(other *MoveEndpointInModule) bool + func (e *MoveEndpointInModule) ObjectKind() MoveEndpointKind + func (e *MoveEndpointInModule) SelectsModule(addr ModuleInstance) bool + func (e *MoveEndpointInModule) SelectsResource(addr AbsResource) bool + func (e *MoveEndpointInModule) String() string + func (from *MoveEndpointInModule) IsModuleReIndex(to *MoveEndpointInModule) bool + type MoveEndpointKind rune + const MoveEndpointModule + const MoveEndpointResource + func (i MoveEndpointKind) String() string + type OutputValue struct + Name string + func (v OutputValue) Absolute(m ModuleInstance) AbsOutputValue + func (v OutputValue) InModule(m Module) ConfigOutputValue + func (v OutputValue) String() string + type PathAttr struct + Name string + func (pa PathAttr) String() string + func (pa PathAttr) UniqueKey() UniqueKey + type Provider = tfaddr.Provider + 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 + 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) + func (r *Reference) DisplayString() string + 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) Less(o Resource) bool + func (r Resource) Phase(rpt ResourceInstancePhaseType) ResourcePhase + func (r Resource) String() string + func (r Resource) UniqueKey() UniqueKey + 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) Less(o ResourceInstance) bool + func (r ResourceInstance) Phase(rpt ResourceInstancePhaseType) ResourceInstancePhase + func (r ResourceInstance) String() string + func (r ResourceInstance) UniqueKey() UniqueKey + type ResourceInstancePhase struct + Phase ResourceInstancePhaseType + ResourceInstance ResourceInstance + func (rp ResourceInstancePhase) ContainingResource() ResourcePhase + func (rp ResourceInstancePhase) String() string + func (rp ResourceInstancePhase) UniqueKey() UniqueKey + 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 + func (rp ResourcePhase) UniqueKey() UniqueKey + type Set map[UniqueKey]T + func MakeSet(elems ...T) Set[T] + func (s Set[T]) Add(addr T) + func (s Set[T]) Has(addr T) bool + func (s Set[T]) Intersection(other Set[T]) Set[T] + func (s Set[T]) Remove(addr T) + func (s Set[T]) Union(other Set[T]) Set[T] + 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) + func (t *Target) ModuleAddr() ModuleInstance + type Targetable interface + AddrType func() TargetableAddrType + String func() string + TargetContains func(other Targetable) bool + type TargetableAddrType int + const AbsResourceAddrType + const AbsResourceInstanceAddrType + const ConfigResourceAddrType + const ModuleAddrType + const ModuleInstanceAddrType + type TerraformAttr struct + Name string + func (ta TerraformAttr) String() string + func (ta TerraformAttr) UniqueKey() UniqueKey + type UniqueKey interface + type UniqueKeyer interface + UniqueKey func() UniqueKey