opentofu/addrs
Kristin Laemmert 60321b41e8
getproviders: move protocol compatibility functions into registry client (#24846)
* internal/registry source: return error if requested provider version protocols are not supported

* getproviders: move responsibility for protocol compatibility checks into the registry client

The original implementation had the providercache checking the provider
metadata for protocol compatibility, but this is only relevant for the
registry source so it made more sense to move the logic into
getproviders.

This also addresses an issue where we were pulling the metadata for
every provider version until we found one that was supported. I've
extended the registry client to unmarshal the protocols in
`ProviderVersions` so we can filter through that list, instead of
pulling each version's metadata.
2020-05-11 13:49:12 -04:00
..
count_attr.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
doc.go addrs: new package for representing addresses 2018-10-16 18:44:26 -07:00
for_each_attr.go Resource for_each 2019-07-22 10:51:16 -04:00
input_variable.go Module Expansion: Part 2 (#24154) 2020-02-24 17:42:32 -05:00
instance_key.go Add InstanceKey.Value method 2020-02-19 16:02:40 -05:00
local_value.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
module_call.go Update addrs/module_call.go 2020-04-10 14:45:36 -04:00
module_instance.go Missing ConfigResource checks in TargetContains 2020-03-13 19:01:23 -04:00
module.go Missing ConfigResource checks in TargetContains 2020-03-13 19:01:23 -04:00
output_value.go Create non-specific ModuleCallOutput 2020-03-26 13:29:38 -04:00
parse_ref_test.go parse module references as whole modules 2020-04-12 11:26:44 -04:00
parse_ref.go parse module references as whole modules 2020-04-12 11:26:44 -04:00
parse_target_test.go implement addrs.ConfigResource 2020-03-12 15:58:25 -04:00
parse_target.go vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
path_attr.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
provider_config_test.go AbsProviderConfig to use addrs.Module 2020-03-10 20:25:44 -04:00
provider_config.go AbsProviderConfig to use addrs.Module 2020-03-10 20:25:44 -04:00
provider_test.go provider source tests: added test suite to exercise hyphenated providers (#24685) 2020-04-16 15:54:33 -04:00
provider.go getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -04:00
referenceable.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
resource_phase.go core: Produce correct references for destroy nodes 2018-10-16 18:49:20 -07:00
resource.go terraform: large refactor to use Provider from configs.Resource (#24396) 2020-03-18 08:58:20 -04:00
resourcemode_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
self.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
target_test.go Missing ConfigResource checks in TargetContains 2020-03-13 19:01:23 -04:00
targetable.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
terraform_attr.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00