You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/plugin/plugin.go

23 lines
567 B

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
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{},
},
}