github.com/cycloidio/terraform@v1.1.10-0.20220513142504-76d5c768dc63/plugin/plugin.go (about) 1 package plugin 2 3 import ( 4 "github.com/hashicorp/go-plugin" 5 "github.com/cycloidio/terraform/plugin6" 6 ) 7 8 // VersionedPlugins includes both protocol 5 and 6 because this is the function 9 // called in providerFactory (command/meta_providers.go) to set up the initial 10 // plugin client config. 11 var VersionedPlugins = map[int]plugin.PluginSet{ 12 5: { 13 "provider": &GRPCProviderPlugin{}, 14 "provisioner": &GRPCProvisionerPlugin{}, 15 }, 16 6: { 17 "provider": &plugin6.GRPCProviderPlugin{}, 18 }, 19 }