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: 1

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