blob: 7a88cb5f419209e11325dcbf8950f1b86ed9bd7b [file] [log] [blame]
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package plugin
import (
"github.com/hashicorp/go-plugin"
"github.com/hashicorp/terraform/internal/plugin6"
)
// 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.
var VersionedPlugins = map[int]plugin.PluginSet{
5: {
"provider": &GRPCProviderPlugin{},
"provisioner": &GRPCProvisionerPlugin{},
},
6: {
"provider": &plugin6.GRPCProviderPlugin{},
},
}