terraform/internal/getproviders
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
..
testdata/filesystem-mirror provider source tests: added test suite to exercise hyphenated providers (#24685) 2020-04-16 15:54:33 -04:00
doc.go internal/getproviders: Query a provider registry 2020-01-10 09:41:27 -08:00
errors.go getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -04:00
filesystem_mirror_source.go internal/getproviders: Make local directory search a public API 2020-03-25 11:29:48 -07:00
filesystem_mirror_source_test.go provider source tests: added test suite to exercise hyphenated providers (#24685) 2020-04-16 15:54:33 -04:00
filesystem_search.go internal/getproviders: SearchLocalDirectory can handle symlinks 2020-03-25 13:50:00 -07:00
http_mirror_source.go command/cliconfig: Use existing HTTP mirror source rather than new stub 2020-04-23 10:52:01 -07:00
legacy_lookup.go command: Rework 0.13upgrade sub-command 2020-05-07 11:38:55 -04:00
legacy_lookup_test.go internal: Fix LookupLegacyProvider 2020-05-08 12:29:25 -04:00
memoize_source.go internal/getproviders: MemoizeSource for local caching of source responses 2020-01-10 09:41:27 -08:00
memoize_source_test.go internal/providercache: verify that the provider protocol version is compatible (#24737) 2020-04-23 08:21:56 -04:00
mock_source.go internal/providercache: verify that the provider protocol version is compatible (#24737) 2020-04-23 08:21:56 -04:00
multi_source.go internal/getproviders: apply case normalizations in ParseMultiSourceMatchingPatterns (#24753) 2020-04-23 14:50:47 -04:00
multi_source_test.go internal/getproviders: apply case normalizations in ParseMultiSourceMatchingPatterns (#24753) 2020-04-23 14:50:47 -04:00
package_authentication.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
package_authentication_test.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
public_keys.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
registry_client.go getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -04:00
registry_client_test.go getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -04:00
registry_source.go getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -04:00
registry_source_test.go getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -04:00
source.go internal/getproviders: Source interface for generalization 2020-01-10 09:41:27 -08:00
types.go getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -04:00