Documentation
¶
Overview ¶
Package plugintest contains helpers for running provider and provisioner servers only when testing our plugin client code.
This package must be used only from plugin servers used exclusively during testing. In particular, nothing that's linked into the "tofu" executable may import this package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve5 ¶
func Serve5(opts *ServeOpts5)
Serve serves a plugin. This function never returns and should be the final function called in the main function of the plugin.
func Serve6 ¶
func Serve6(opts *ServeOpts6)
Serve serves a plugin. This function never returns and should be the final function called in the main function of the plugin.
Types ¶
type GRPCProviderFunc5 ¶
type GRPCProviderFunc5 func() proto.ProviderServer
type GRPCProviderFunc6 ¶
type GRPCProviderFunc6 func() proto.ProviderServer
type GRPCProvisionerFunc5 ¶
type GRPCProvisionerFunc5 func() proto.ProvisionerServer
type ServeOpts5 ¶
type ServeOpts5 struct {
// Wrapped versions of the above plugins will automatically shimmed and
// added to the GRPC functions when possible.
GRPCProviderFunc GRPCProviderFunc5
GRPCProvisionerFunc GRPCProvisionerFunc5
}
ServeOpts are the configurations to serve a plugin.
type ServeOpts6 ¶
type ServeOpts6 struct {
// Wrapped versions of the above plugins will automatically shimmed and
// added to the GRPC functions when possible.
GRPCProviderFunc GRPCProviderFunc6
}
ServeOpts6 are the configurations to serve a plugin with version 6.