mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-23 07:33:32 -06:00
cb2e9119aa
Signed-off-by: namgyalangmo <75657887+namgyalangmo@users.noreply.github.com>
25 lines
643 B
Go
25 lines
643 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package plugin
|
|
|
|
import (
|
|
"github.com/hashicorp/go-plugin"
|
|
"github.com/opentofu/opentofu/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{},
|
|
},
|
|
}
|