terraform/internal/addrs
Martin Atkins 22eee529e3 addrs: MoveEndpointInModule
We previously built out addrs.UnifyMoveEndpoints with a different
implementation strategy in mind, but that design turns out to not be
viable because it forces us to move to AbsMoveable addresses too soon,
before we've done the analysis required to identify chained and nested
moves.

Instead, UnifyMoveEndpoints will return a new type MoveEndpointInModule
which conceptually represents a matching pattern which either matches or
doesn't match a particular AbsMoveable. It does this by just binding the
unified relative address from the MoveEndpoint to the module where it
was declared, and thus allows us to distinguish between the part of the
module path which applies to any instances of the given modules vs. the
user-specified part which must identify particular module instances.
2021-07-14 17:37:48 -07:00
..
count_attr.go addrs: UniqueKey and UniqueKeyer 2021-07-14 17:37:48 -07:00
doc.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
for_each_attr.go addrs: UniqueKey and UniqueKeyer 2021-07-14 17:37:48 -07:00
input_variable.go addrs: UniqueKey and UniqueKeyer 2021-07-14 17:37:48 -07:00
instance_key.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
local_value.go addrs: UniqueKey and UniqueKeyer 2021-07-14 17:37:48 -07:00
module.go addrs: AbsMoveable, ConfigMoveable, and MoveableEndpoint 2021-07-01 08:28:02 -07:00
module_call.go addrs: MoveEndpointInModule 2021-07-14 17:37:48 -07:00
module_instance.go addrs: ModuleInstance and AbsResourceInstance are UniqueKeyers 2021-07-14 17:37:48 -07:00
module_instance_test.go states: new `Move` funcs for Resource, ResourceInstance, and ModuleInstances (#29068) 2021-07-13 16:10:46 -04:00
module_package.go addrs: ModuleRegistryPackage for representing module registry packages 2021-06-03 08:50:34 -07:00
module_source.go addrs: ModuleRegistryPackage for representing module registry packages 2021-06-03 08:50:34 -07:00
module_source_test.go addrs: ModuleRegistryPackage for representing module registry packages 2021-06-03 08:50:34 -07:00
module_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
move_endpoint.go addrs: MoveEndpointInModule 2021-07-14 17:37:48 -07:00
move_endpoint_kind.go addrs: MoveEndpointInModule 2021-07-14 17:37:48 -07:00
move_endpoint_module.go addrs: MoveEndpointInModule 2021-07-14 17:37:48 -07:00
move_endpoint_test.go addrs: MoveEndpointInModule 2021-07-14 17:37:48 -07:00
moveable.go addrs: MoveEndpointInModule 2021-07-14 17:37:48 -07:00
moveendpointkind_string.go addrs: MoveEndpointInModule 2021-07-14 17:37:48 -07:00
output_value.go addrs: Rename AbsModuleCallOutput to ModuleCallInstanceOutput 2021-07-01 08:28:02 -07:00
output_value_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
parse_ref.go addrs: Rename AbsModuleCallOutput to ModuleCallInstanceOutput 2021-07-01 08:28:02 -07:00
parse_ref_test.go addrs: Rename AbsModuleCallOutput to ModuleCallInstanceOutput 2021-07-01 08:28:02 -07:00
parse_target.go addrs: AbsMoveable, ConfigMoveable, and MoveableEndpoint 2021-07-01 08:28:02 -07:00
parse_target_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
path_attr.go addrs: UniqueKey and UniqueKeyer 2021-07-14 17:37:48 -07:00
provider.go addrs: Rename DefaultRegistryHost to DefaultProviderRegistryHost 2021-06-03 08:50:34 -07:00
provider_config.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
provider_config_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
provider_test.go addrs: Rename DefaultRegistryHost to DefaultProviderRegistryHost 2021-06-03 08:50:34 -07:00
referenceable.go addrs: UniqueKey and UniqueKeyer 2021-07-14 17:37:48 -07:00
resource.go addrs: ModuleInstance and AbsResourceInstance are UniqueKeyers 2021-07-14 17:37:48 -07:00
resource_phase.go addrs: UniqueKey and UniqueKeyer 2021-07-14 17:37:48 -07:00
resource_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
resourcemode_string.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
self.go addrs: UniqueKey and UniqueKeyer 2021-07-14 17:37:48 -07:00
set.go addrs: UniqueKey and UniqueKeyer 2021-07-14 17:37:48 -07:00
target_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
targetable.go configs: add decodeMovedBlock behind a locked gate. (#28973) 2021-06-21 10:53:16 -04:00
terraform_attr.go addrs: UniqueKey and UniqueKeyer 2021-07-14 17:37:48 -07:00
unique_key.go addrs: UniqueKey and UniqueKeyer 2021-07-14 17:37:48 -07:00
unique_key_test.go addrs: ModuleInstance and AbsResourceInstance are UniqueKeyers 2021-07-14 17:37:48 -07:00