Versions in this module Expand all Collapse all v1 v1.0.1 Oct 24, 2024 v1.0.1-rc1 Sep 30, 2024 v1.0.0 Sep 5, 2024 Changes in this version + const BuiltInProviderHost + const BuiltInProviderNamespace + const DefaultModuleRegistryHost + const DefaultProviderRegistryHost + const FunctionNamespaceCore + const FunctionNamespaceProvider + const IdentTerraform + const IdentTofu + const LegacyProviderNamespace + const Self + var FunctionNamespaces = []string + func Equivalent[T UniqueKeyer](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 AbsCheck struct + Check Check + Module ModuleInstance + func (c AbsCheck) CheckRule(typ CheckRuleType, i int) CheckRule + func (c AbsCheck) CheckableKind() CheckableKind + func (c AbsCheck) ConfigCheckable() ConfigCheckable + func (c AbsCheck) String() string + func (c AbsCheck) UniqueKey() UniqueKey + type AbsInputVariableInstance struct + Module ModuleInstance + Variable InputVariable + func (v AbsInputVariableInstance) CheckRule(typ CheckRuleType, i int) CheckRule + func (v AbsInputVariableInstance) CheckableKind() CheckableKind + func (v AbsInputVariableInstance) ConfigCheckable() ConfigCheckable + func (v AbsInputVariableInstance) String() string + func (v AbsInputVariableInstance) UniqueKey() UniqueKey + 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) CheckRule(t CheckRuleType, i int) CheckRule + 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) CheckRule(t CheckRuleType, i int) CheckRule + 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 + Name string + func (c Check) Absolute(modAddr ModuleInstance) AbsCheck + func (c Check) Equal(o Check) bool + func (c Check) InModule(modAddr Module) ConfigCheck + func (c Check) String() string + func (c Check) UniqueKey() UniqueKey + type CheckRule struct + Container Checkable + Index int + Type CheckRuleType + func DiagnosticOriginatesFromCheckRule(diag tfdiags.Diagnostic) (CheckRule, bool) + func NewCheckRule(container Checkable, typ CheckRuleType, index int) CheckRule + func (c CheckRule) String() string + func (c CheckRule) UniqueKey() UniqueKey + type CheckRuleDiagnosticExtra struct + CheckRule CheckRule + func (c *CheckRuleDiagnosticExtra) DiagnosticOriginatesFromCheckRule() CheckRule + func (c *CheckRuleDiagnosticExtra) DoNotConsolidateDiagnostic() bool + func (c *CheckRuleDiagnosticExtra) UnwrapDiagnosticExtra() interface{} + func (c *CheckRuleDiagnosticExtra) WrapDiagnosticExtra(inner interface{}) + type CheckRuleType int + const CheckAssertion + const CheckDataResource + const InputValidation + const InvalidCondition + const OutputPrecondition + const ResourcePostcondition + const ResourcePrecondition + func (c CheckRuleType) Description() string + func (i CheckRuleType) String() string + type Checkable interface + CheckRule func(CheckRuleType, int) CheckRule + CheckableKind func() CheckableKind + ConfigCheckable func() ConfigCheckable + String func() string + func ParseCheckableStr(kind CheckableKind, src string) (Checkable, tfdiags.Diagnostics) + type CheckableKind rune + const CheckableCheck + const CheckableInputVariable + const CheckableKindInvalid + const CheckableOutputValue + const CheckableResource + func (i CheckableKind) String() string + type ConfigCheck struct + Check Check + Module Module + func (c ConfigCheck) CheckableKind() CheckableKind + func (c ConfigCheck) String() string + func (c ConfigCheck) UniqueKey() UniqueKey + type ConfigCheckable interface + CheckableKind func() CheckableKind + String func() string + type ConfigInputVariable struct + Module Module + Variable InputVariable + func (v ConfigInputVariable) CheckableKind() CheckableKind + func (v ConfigInputVariable) String() string + func (v ConfigInputVariable) UniqueKey() UniqueKey + 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 ConfigRemovable interface + String func() string + type ConfigResource struct + Module Module + Resource Resource + func ParseConfigResource(traversal hcl.Traversal) (ConfigResource, tfdiags.Diagnostics) + 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 DiagnosticExtraCheckRule interface + DiagnosticOriginatesFromCheckRule func() CheckRule + type ForEachAttr struct + Name string + func (f ForEachAttr) String() string + func (f ForEachAttr) UniqueKey() UniqueKey + type Function struct + Name string + Namespaces []string + func ParseFunction(input string) Function + func (f Function) AsProviderFunction() (pf ProviderFunction, err error) + func (f Function) IsNamespace(namespace string) bool + func (f Function) String() string + type InputVariable struct + Name string + func (v InputVariable) Absolute(m ModuleInstance) AbsInputVariableInstance + func (v InputVariable) InModule(module Module) ConfigInputVariable + 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[K UniqueKeyer, V any](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[K UniqueKeyer, V any](key K, value V) MapElem[K, V] + type Module []string + var RootModule Module + func ParseModule(traversal hcl.Traversal) (Module, tfdiags.Diagnostics) + 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) Equal(o OutputValue) bool + func (v OutputValue) InModule(m Module) ConfigOutputValue + func (v OutputValue) String() string + func (v OutputValue) UniqueKey() UniqueKey + 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 ProviderFunction struct + Function string + ProviderAlias string + ProviderName string + func (v ProviderFunction) String() string + func (v ProviderFunction) UniqueKey() UniqueKey + type Reference struct + Remaining hcl.Traversal + SourceRange tfdiags.SourceRange + Subject Referenceable + func ParseRef(traversal hcl.Traversal) (*Reference, tfdiags.Diagnostics) + func ParseRefFromTestingScope(traversal hcl.Traversal) (*Reference, tfdiags.Diagnostics) + func ParseRefStr(str string) (*Reference, tfdiags.Diagnostics) + func ParseRefStrFromTestingScope(str string) (*Reference, tfdiags.Diagnostics) + func (r *Reference) DisplayString() string + type Referenceable interface + String func() string + type RemoveEndpoint struct + RelSubject ConfigRemovable + SourceRange tfdiags.SourceRange + func ParseRemoveEndpoint(traversal hcl.Traversal) (*RemoveEndpoint, tfdiags.Diagnostics) + 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[T UniqueKeyer](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 + Alias string + Name string + func NewTerraformAttr(alias, name string) TerraformAttr + func (ta TerraformAttr) String() string + func (ta TerraformAttr) UniqueKey() UniqueKey + type UniqueKey interface + type UniqueKeyer interface + UniqueKey func() UniqueKey v1.0.0-rc6 Sep 5, 2024 v1.0.0-rc5 Sep 2, 2024 v1.0.0-rc4 Sep 2, 2024 v1.0.0-rc3 Aug 30, 2024 v1.0.0-rc2 Aug 30, 2024 v1.0.0-rc1 Aug 29, 2024