terraform/internal/getproviders
Martin Atkins 6694cfaa0e getproviders: Add a real type Hash for package hashes
The logic for what constitutes a valid hash and how different hash schemes
are represented was starting to get sprawled over many different files and
packages.

Consistently with other cases where we've used named types to gather the
definition of a particular string into a single place and have the Go
compiler help us use it properly, this introduces both getproviders.Hash
representing a hash value and getproviders.HashScheme representing the
idea of a particular hash scheme.

Most of this changeset is updating existing uses of primitive strings to
uses of getproviders.Hash. The new type definitions are in
internal/getproviders/hash.go.
2020-09-24 14:01:54 -07:00
..
testdata internal/getproviders: Allow basedir for local search to be symlink 2020-08-18 14:28:50 -07:00
doc.go internal/getproviders: Query a provider registry 2020-01-10 09:41:27 -08:00
errors.go internal/getproviders: HTTPMirrorSource implementation 2020-08-26 13:18:08 -07:00
filesystem_mirror_source.go internal/getproviders: decode and return any registry warnings (#25337) 2020-06-25 10:49:48 -04:00
filesystem_mirror_source_test.go internal/getproviders: Allow PackageMeta to carry acceptable hashes 2020-09-24 14:01:54 -07:00
filesystem_search.go internal/getproviders: Allow basedir for local search to be symlink 2020-08-18 14:28:50 -07:00
filesystem_search_test.go internal/getproviders: Allow basedir for local search to be symlink 2020-08-18 14:28:50 -07:00
hash.go getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -07:00
hash_test.go getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -07:00
http_mirror_source.go getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -07:00
http_mirror_source_test.go getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -07:00
legacy_lookup.go command: Add redirect support to 0.13upgrade 2020-08-31 14:53:35 -04:00
legacy_lookup_test.go command: Add redirect support to 0.13upgrade 2020-08-31 14:53:35 -04:00
memoize_source.go internal/getproviders: decode and return any registry warnings (#25337) 2020-06-25 10:49:48 -04:00
memoize_source_test.go internal/getproviders: decode and return any registry warnings (#25337) 2020-06-25 10:49:48 -04:00
mock_source.go internal/getproviders: Allow PackageMeta to carry acceptable hashes 2020-09-24 14:01:54 -07:00
multi_source.go internal/getproviders: decode and return any registry warnings (#25337) 2020-06-25 10:49:48 -04:00
multi_source_test.go internal/getproviders: decode and return any registry warnings (#25337) 2020-06-25 10:49:48 -04:00
package_authentication.go getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -07:00
package_authentication_test.go getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -07:00
public_keys.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
registry_client.go internal/getproviders: Allow PackageMeta to carry acceptable hashes 2020-09-24 14:01:54 -07:00
registry_client_test.go command: Add redirect support to 0.13upgrade 2020-08-31 14:53:35 -04:00
registry_source.go command: Add redirect support to 0.13upgrade 2020-08-31 14:53:35 -04:00
registry_source_test.go getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -07:00
source.go internal/getproviders: decode and return any registry warnings (#25337) 2020-06-25 10:49:48 -04:00
types.go getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -07:00