mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-27 09:21:14 -06:00
4cbe6cabfc
These three types represent the three different address representations we need to represent different stages of analysis for "moved" blocks in the configuration. The goal here is to encapsulate all of the static address wrangling inside these types so that users of these types elsewhere would have to work pretty hard to use them incorrectly. In particular, the MovableEndpoint type intentionally fully encapsulates the weird relative addresses we use in configuration so that code elsewhere in Terraform can never end up holding an address of a type that suggests absolute when it's actually relative. That situation only occurs in the internals of MoveableEndpoint where we use not-really-absolute AbsMoveable address types to represent the not-yet-resolved relative addresses. This only takes care of the static address wrangling. There's lots of other rules for what makes a "moved" block valid which will need to be checked elsewhere because they require more context than just the content of the address itself. |
||
---|---|---|
.. | ||
count_attr.go | ||
doc.go | ||
for_each_attr.go | ||
input_variable.go | ||
instance_key.go | ||
local_value.go | ||
module_call.go | ||
module_instance_test.go | ||
module_instance.go | ||
module_package.go | ||
module_source_test.go | ||
module_source.go | ||
module_test.go | ||
module.go | ||
move_endpoint_test.go | ||
move_endpoint.go | ||
moveable.go | ||
output_value_test.go | ||
output_value.go | ||
parse_ref_test.go | ||
parse_ref.go | ||
parse_target_test.go | ||
parse_target.go | ||
path_attr.go | ||
provider_config_test.go | ||
provider_config.go | ||
provider_test.go | ||
provider.go | ||
referenceable.go | ||
resource_phase.go | ||
resource_test.go | ||
resource.go | ||
resourcemode_string.go | ||
self.go | ||
target_test.go | ||
targetable.go | ||
terraform_attr.go |