github.com/opentofu/opentofu@v1.7.1/internal/provider-simple-v6/main/main.go (about) 1 // Copyright (c) The OpenTofu Authors 2 // SPDX-License-Identifier: MPL-2.0 3 // Copyright (c) 2023 HashiCorp, Inc. 4 // SPDX-License-Identifier: MPL-2.0 5 6 package main 7 8 import ( 9 "github.com/opentofu/opentofu/internal/grpcwrap" 10 plugin "github.com/opentofu/opentofu/internal/plugin6" 11 simple "github.com/opentofu/opentofu/internal/provider-simple-v6" 12 "github.com/opentofu/opentofu/internal/tfplugin6" 13 ) 14 15 func main() { 16 plugin.Serve(&plugin.ServeOpts{ 17 GRPCProviderFunc: func() tfplugin6.ProviderServer { 18 return grpcwrap.Provider6(simple.Provider()) 19 }, 20 }) 21 }