plugintest

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MPL-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL