plugin

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: AGPL-3.0 Imports: 18 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

NewClient creates a Provider backed by a gRPC connection.

func NewServer

NewServer creates a gRPC server wrapping the given Provider.

Types

type GRPCPlugin

type GRPCPlugin struct {
	goplugin.Plugin
	Impl             resource.Provider
	SettingsProvider settings.Provider
}

GRPCPlugin implements hashicorp/go-plugin.GRPCPlugin for the resource plugin.

func (*GRPCPlugin) GRPCClient

func (p *GRPCPlugin) GRPCClient(_ context.Context, _ *goplugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

GRPCClient returns a resource.Provider backed by the given gRPC client connection.

func (*GRPCPlugin) GRPCServer

func (p *GRPCPlugin) GRPCServer(_ *goplugin.GRPCBroker, s *grpc.Server) error

GRPCServer registers the resource plugin server on the given gRPC server.

Jump to

Keyboard shortcuts

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