2014-05-29 06:27:10 +02:00
|
|
|
package plugin
|
2016-01-25 03:10:52 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/go-plugin"
|
2021-05-17 21:35:22 +02:00
|
|
|
"github.com/hashicorp/terraform/internal/plugin6"
|
2016-01-25 03:10:52 +01:00
|
|
|
)
|
|
|
|
|
2021-02-22 16:22:45 +01:00
|
|
|
// VersionedPlugins includes both protocol 5 and 6 because this is the function
|
|
|
|
// called in providerFactory (command/meta_providers.go) to set up the initial
|
|
|
|
// plugin client config.
|
2018-08-25 01:13:50 +02:00
|
|
|
var VersionedPlugins = map[int]plugin.PluginSet{
|
|
|
|
5: {
|
|
|
|
"provider": &GRPCProviderPlugin{},
|
|
|
|
"provisioner": &GRPCProvisionerPlugin{},
|
|
|
|
},
|
2021-02-22 16:22:45 +01:00
|
|
|
6: {
|
|
|
|
"provider": &plugin6.GRPCProviderPlugin{},
|
|
|
|
},
|
2016-01-25 03:10:52 +01:00
|
|
|
}
|