Versions in this module Expand all Collapse all v1 v1.1.3 Dec 29, 2021 Changes in this version + const BuiltInProviderHost + const BuiltInProviderNamespace + const DefaultModuleRegistryHost + const DefaultProviderRegistryHost + 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 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 (v AbsOutputValue) Equal(o AbsOutputValue) bool + func (v AbsOutputValue) ModuleCallOutput() (ModuleInstance, ModuleCallInstanceOutput) + 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) 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) 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) 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 + type ConfigMoveable interface + 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 + 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 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 struct + Host svchost.Hostname + Name string + Namespace string + TargetSystem string + func (s ModuleRegistryPackage) ForDisplay() string + func (s ModuleRegistryPackage) ForRegistryProtocol() string + func (s ModuleRegistryPackage) String() string + 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 struct + PackageAddr ModuleRegistryPackage + Subdir string + func (s ModuleSourceRegistry) ForDisplay() string + func (s ModuleSourceRegistry) String() string + type ModuleSourceRemote struct + PackageAddr 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 + 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) String() string + type PathAttr struct + Name string + func (pa PathAttr) String() string + func (pa PathAttr) UniqueKey() UniqueKey + 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 + 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) 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]UniqueKeyer + func (s Set) Add(addr UniqueKeyer) + func (s Set) Has(addr UniqueKeyer) bool + func (s Set) Intersection(other Set) Set + func (s Set) Remove(addr UniqueKeyer) + func (s Set) Union(other Set) Set + 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