Commit Graph

173 Commits (6440c839474f052d8997bb5cec19c2743e5108e6)

Author SHA1 Message Date
Martin Atkins 72e279e6b2 providers: Consistently use int64 for schema versions
7 years ago
findkim 5e06e39fcc Use registry alias to fetch providers
7 years ago
Justin Campbell 06825bf46d plugin/discovery: Add friendly gpg err msg
7 years ago
Justin Campbell 9a8a74b9bb plugin/discovery: Print name before verification
7 years ago
Justin Campbell 495826444b plugin/discovery: Use GPG keys from Registry
7 years ago
Martin Atkins 4fe9632f09 plugin: Establish our current plugin protocol as version 5
7 years ago
Martin Atkins ec57927ea3 build: Take protoc out of the "go generate" path
7 years ago
James Bardin 3bdd3b2a6e update plugin client with PrepareProviderConfig
7 years ago
James Bardin b173037eb3 update mock for PrepareProviderConfig
7 years ago
James Bardin ba472c7059 Update proto with new PrepareProviderConfig method
7 years ago
James Bardin 3a0c2f1b67 close grpc TestListener
7 years ago
Martin Atkins e25f79ed28 plugin/convert: Show approximate location context for all provider errors
7 years ago
Martin Atkins 3eaf2c308d plugin/discovery: Use mockos_mockarch when testing installation
7 years ago
James Bardin 0d4d572c39 start work on helper/resource test fixtures
7 years ago
James Bardin 52c0032aed update provisioners for multiple processes
7 years ago
James Bardin a14fe7ae0c missing diagnostics in pugin protocol
7 years ago
James Bardin 795161f615 update to start a new process for each plugin
7 years ago
James Bardin 35b375d3ee check responses for nil values
7 years ago
Martin Atkins 88551181d5 plugin: Fix tests
7 years ago
Martin Atkins a7342de274 core: Properly handle no-op changes in plan
7 years ago
Martin Atkins 9ec00468f8 plugin/convert: Convert cty.PathError to diagnostics with attribute path
7 years ago
Martin Atkins 5d744e6824 plugin: TRACE log for each GRPC-remoted plugin call
7 years ago
Martin Atkins 4bf19797f3 plugin: Fix deadlock in getSchema where mutex is never unlocked
7 years ago
Martin Atkins 5559d21855 plugin: Register v5 plugins only if present
7 years ago
Martin Atkins 44bc7519a6 terraform: More wiring in of new provider types
7 years ago
James Bardin c07ce1cd4b move conversion functions into separate package
7 years ago
James Bardin 88bfbeb9c5 schema version changed type
7 years ago
James Bardin b403023841 serve the new version 5 grpc plugins
7 years ago
James Bardin ff7d51a9b4 update tests to match new test func signature
7 years ago
Kristin Laemmert 5e7956f440 registry/response: rename Collection to ProviderVersionCollection for clarity
7 years ago
James Bardin c9d91dc64e remove old comment
7 years ago
Kristin Laemmert bdaf8290b4 registry/client: added a specific error if the registry client does not
7 years ago
James Bardin c1d4a63fae GRPCProvider and GRPCProvisioner clients
7 years ago
James Bardin 81bd3b09d6 generate mocks for some of the grpc interfaces
7 years ago
James Bardin e29053432e grpc proto fixes
7 years ago
Kristin Laemmert ae015e0f75 plugin/discovery: add function to filter list of versions by those which
7 years ago
Kristin Laemmert f83d5866fe plugin/discovery: removing deprecated functions
7 years ago
Kristin Laemmert ce5e66e178 plugin/discovery provider installer: download providers from the registry
7 years ago
James Bardin 8f51b2fba5 add grpc service definitions
7 years ago
Martin Atkins 4ed06a9227 terraform: HCL2-flavored module dependency resolver
7 years ago
James Bardin 0a6938e90a update tests to match pre-release constraint rules
7 years ago
Sean Chittenden d749420a25
Fix drift caused from gofmt when running make dev and go 1.11.
8 years ago
Paul Tyng c868092d2d
Standardize http.Client creation with User-Agent
8 years ago
Masayuki Morita f440dba137 Standardize on log level "WARN" rather than "WARNING"
8 years ago
James Bardin 6cb4e14cf8 Use pooled http client for fetching providers
8 years ago
Martin Atkins 183833affc core: terraform.ResourceProvider.GetSchema method
9 years ago
Martin Atkins 879899d434 plugin/discovery: plugin caching mechanism
9 years ago
Martin Atkins 12d6bc8c30 plugin/discovery: ignore non-files when discovering
9 years ago
James Bardin 3dd0f93aed Merge pull request #15816 from hashicorp/jbardin/plugin-logger
9 years ago
James Bardin 714df97a02 specify a logger for go-plugin
9 years ago
Radek Simko 28b33c9299
plugin: Display version + source when initializing plugins
9 years ago
Radek Simko de3015cebf
Remove overly verbose DEBUG log
9 years ago
Martin Atkins ac250d2792 plugin/discovery: trim off .exe suffix when parsing filenames
9 years ago
James Bardin 2b84e786e9 allow missing x-terraform-protocol-version
9 years ago
Martin Atkins 610fcb605e plugin/discovery: allow customizing the OS/arch for auto-install
9 years ago
James Bardin beebd5cee3 improve discovery logging
9 years ago
James Bardin e059eb80d1 add test for signature mismatch
9 years ago
James Bardin 2cca6f10fa return sig error when fetching a plugin
9 years ago
James Bardin c10f5caf05 Merge pull request #15345 from hashicorp/jbardin/plugin-sig
9 years ago
Martin Atkins af2111f24e plugin/discovery: sentinel error values for Get errors
9 years ago
James Bardin 13d835f996 test signature verification
9 years ago
James Bardin 415d562d36 add signature verification
9 years ago
James Bardin 2e57d284cb Merge pull request #15323 from hashicorp/jbardin/constraint-suggestion
9 years ago
James Bardin ec99b6910b remove "~> 0.0" constraint suggestions
9 years ago
James Bardin 6faace287d remove restriction on unversioned plugins
9 years ago
James Bardin ba5b0dc609 mostly remove OS_ARCH knowledge from discovery
9 years ago
James Bardin f723270e3e search the vendor directory for plugins
9 years ago
Martin Atkins af4c82d151 plugin/discovery: Installer.PurgeUnused method
9 years ago
Martin Atkins f753974bb3 plugin/discovery: Installer interface, and provider implementation
9 years ago
James Bardin 840978b2d5 udpate to plugin name convention
9 years ago
James Bardin 1b201e67ea fix releases path and protocol header
9 years ago
James Bardin 283ae0c7c4 fix comment and add some logging in discovery
9 years ago
James Bardin ea3d9c86ba sort constraints for consistent output
9 years ago
Martin Atkins 4ba20f9c1c command init: show suggested constraints for unconstrained providers
9 years ago
James Bardin dbbafbd43f clean up plugin fetching
9 years ago
James Bardin 48d37131e0 more tests for fetching providers
9 years ago
James Bardin 5f053a2e64 refactor GetProvider
9 years ago
James Bardin 8ad67991a5 check protocol version on plugins
9 years ago
James Bardin fdeb3d929c Add Versions.Sort
9 years ago
Martin Atkins 04bcece59c plugin/discovery: handle the -Xn suffix used by auto-installed plugins
9 years ago
Martin Atkins e3401947a6 plugin/discovery: PluginRequirements can specify SHA256 digests
9 years ago
James Bardin 044ad5ef59 rename some Constraints methods per code review
9 years ago
James Bardin 211f5b5d6e add test for newestVersion
9 years ago
James Bardin 46190590cb change []*Version to []Version
9 years ago
James Bardin a547e7c2f0 add releases version listing test
9 years ago
James Bardin 2749946f5c basic plugin getter
9 years ago
James Bardin fa49c69793 expose Version.NewerThan
9 years ago
James Bardin 7d2d951f27 Rename VersionSet to Constraints
9 years ago
James Bardin 718ede0636 have Meta.Backend use a Config rather than loading
9 years ago
Martin Atkins cfc08ae7e3 plugin/discovery: provide an AllVersions set
9 years ago
Martin Atkins a1e29ae290 plugin/discovery: use go-version instead of semver
9 years ago
Martin Atkins 9b4f15c261 plugin: move Client function into plugin, from plugin/discovery
9 years ago
Martin Atkins bcd395e6bd plugin/discovery: Allow overriding the paths of certain plugin names
9 years ago
Martin Atkins 551bc9c4a4 plugin/discovery: build plugin clients
9 years ago
Martin Atkins 0a08214a74 plugin/discovery: SHA256() method to get the hash of each plugin
9 years ago
Martin Atkins a94e9a4362 plugin/discovery: find plugins in a given set of directories
9 years ago
Martin Atkins 39deb1ff6b plugin/discovery: helpers for wrangling plugin versions
9 years ago
Mitchell Hashimoto 700c74bdd0
plugin: bump protocol version
9 years ago
Mitchell Hashimoto 96884ec42d
plugin: bump the protocol version due to Provisioner change
9 years ago
Mitchell Hashimoto 2e894c4ef7
plugin: add ResourceProvisioner.Stop API
9 years ago