Documentation
¶
Overview ¶
Package tf5server implements a server implementation to run tfprotov5.ProviderServers as gRPC servers.
Providers will likely be calling tf5server.Serve from their main function to start the server so Terraform can connect to it.
Index ¶
- func New(name string, serve tfprotov5.ProviderServer, opts ...ServeOpt) tfplugin5.ProviderServer
- func Serve(name string, serverFactory func() tfprotov5.ProviderServer, opts ...ServeOpt) error
- type GRPCProviderPlugin
- func (p *GRPCProviderPlugin) Client(*plugin.MuxBroker, *rpc.Client) (interface{}, error)
- func (p *GRPCProviderPlugin) GRPCClient(context.Context, *plugin.GRPCBroker, *grpc.ClientConn) (interface{}, error)
- func (p *GRPCProviderPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
- func (p *GRPCProviderPlugin) Server(*plugin.MuxBroker) (interface{}, error)
- type ServeConfig
- type ServeOpt
- func WithDebug(ctx context.Context, config chan *plugin.ReattachConfig, closeCh chan struct{}) ServeOpt
- func WithGoPluginLogger(logger hclog.Logger) ServeOpt
- func WithLogEnvVarName(name string) ServeOpt
- func WithLoggingSink(t testing.T) ServeOpt
- func WithManagedDebug() ServeOpt
- func WithManagedDebugEnvFilePath(path string) ServeOpt
- func WithManagedDebugReattachConfigTimeout(timeout time.Duration) ServeOpt
- func WithManagedDebugStopSignals(signals []os.Signal) ServeOpt
- func WithoutLogLocation() ServeOpt
- func WithoutLogStderrOverride() ServeOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.