terraform/plugin/discovery
Martin Atkins f753974bb3 plugin/discovery: Installer interface, and provider implementation
Previously we had a "getProvider" function type used to implement plugin
fetching. Here we replace that with an interface type, initially with
just a "Get" function.

For now this just simplifies the interface by allowing the target
directory and protocol version to be members of the struct rather than
passed as arguments.

A later change will extend this interface to also include a method to
purge unused plugins, so that upgrading frequently doesn't leave behind
a trail of unused executable files.
2017-06-13 12:28:07 -07:00
..
test-fixtures udpate to plugin name convention 2017-06-09 14:03:59 -07:00
find.go udpate to plugin name convention 2017-06-09 14:03:59 -07:00
find_test.go udpate to plugin name convention 2017-06-09 14:03:59 -07:00
get.go plugin/discovery: Installer interface, and provider implementation 2017-06-13 12:28:07 -07:00
get_test.go plugin/discovery: Installer interface, and provider implementation 2017-06-13 12:28:07 -07:00
meta.go plugin/discovery: use go-version instead of semver 2017-06-09 14:03:59 -07:00
meta_set.go plugin/discovery: Installer interface, and provider implementation 2017-06-13 12:28:07 -07:00
meta_set_test.go plugin/discovery: PluginRequirements can specify SHA256 digests 2017-06-09 14:03:59 -07:00
meta_test.go udpate to plugin name convention 2017-06-09 14:03:59 -07:00
requirements.go plugin/discovery: PluginRequirements can specify SHA256 digests 2017-06-09 14:03:59 -07:00
requirements_test.go plugin/discovery: PluginRequirements can specify SHA256 digests 2017-06-09 14:03:59 -07:00
version.go plugin/discovery: Installer interface, and provider implementation 2017-06-13 12:28:07 -07:00
version_set.go sort constraints for consistent output 2017-06-09 14:03:59 -07:00
version_set_test.go rename some Constraints methods per code review 2017-06-09 14:03:59 -07:00
version_test.go Add Versions.Sort 2017-06-09 14:03:59 -07:00