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