2023-05-02 10:33:06 -05:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2014-05-28 23:27:10 -05:00
|
|
|
package plugin
|
2016-01-24 20:10:52 -06:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/go-plugin"
|
2021-05-17 14:35:22 -05:00
|
|
|
"github.com/hashicorp/terraform/internal/plugin6"
|
2016-01-24 20:10:52 -06:00
|
|
|
)
|
|
|
|
|
2021-02-22 09:22:45 -06: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-24 18:13:50 -05:00
|
|
|
var VersionedPlugins = map[int]plugin.PluginSet{
|
|
|
|
5: {
|
|
|
|
"provider": &GRPCProviderPlugin{},
|
|
|
|
"provisioner": &GRPCProvisionerPlugin{},
|
|
|
|
},
|
2021-02-22 09:22:45 -06:00
|
|
|
6: {
|
|
|
|
"provider": &plugin6.GRPCProviderPlugin{},
|
|
|
|
},
|
2016-01-24 20:10:52 -06:00
|
|
|
}
|