opentofu/internal/getproviders
Alisdair McDiarmid ae98bd12a7 command: Rework 0.13upgrade sub-command
This commit implements most of the intended functionality of the upgrade
command for rewriting configurations.

For a given module, it makes a list of all providers in use. Then it
attempts to detect the source address for providers without an explicit
source.

Once this step is complete, the tool rewrites the relevant configuration
files. This results in a single "required_providers" block for the
module, with a source for each provider.

Any providers for which the source cannot be detected (for example,
unofficial providers) will need a source to be defined by the user. The
tool writes an explanatory comment to the configuration to help with
this.
2020-05-07 11:38:55 -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 internal/getproviders: Implement MultiSource 2020-04-06 09:24:23 -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_mirror_source.go internal/getproviders: Make local directory search a public API 2020-03-25 11:29:48 -07: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_test.go internal/getproviders: LookupLegacyProvider 2020-01-22 09:02:22 -08:00
legacy_lookup.go command: Rework 0.13upgrade sub-command 2020-05-07 11:38:55 -04:00
memoize_source_test.go internal/providercache: verify that the provider protocol version is compatible (#24737) 2020-04-23 08:21:56 -04:00
memoize_source.go internal/getproviders: MemoizeSource for local caching of source responses 2020-01-10 09:41:27 -08: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_test.go internal/getproviders: apply case normalizations in ParseMultiSourceMatchingPatterns (#24753) 2020-04-23 14:50:47 -04:00
multi_source.go internal/getproviders: apply case normalizations in ParseMultiSourceMatchingPatterns (#24753) 2020-04-23 14:50:47 -04:00
package_authentication_test.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
package_authentication.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_test.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
registry_client.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
registry_source_test.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
registry_source.go internal/getproviders: LookupLegacyProvider 2020-01-22 09:02:22 -08:00
source.go internal/getproviders: Source interface for generalization 2020-01-10 09:41:27 -08:00
types.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00