plug

package
v0.0.0-...-39278d5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginName = "runc"
)

Variables

View Source
var Handshake = plugin.HandshakeConfig{

	ProtocolVersion:  1,
	MagicCookieKey:   "BASIC_PLUGIN",
	MagicCookieValue: "hello",
}

Handshake is a common handshake that is shared by plugin and host.

View Source
var PluginMap = plugin.PluginSet{
	"runc": &RuntimePlugin{},
}

PluginMap is the map of plugins we can dispense.

Functions

func NewRuntimePluginSet

func NewRuntimePluginSet(server *server.Server) plugin.PluginSet

Types

type RuntimePlugin

type RuntimePlugin struct {
	// contains filtered or unexported fields
}

This is the implementation of plugin.GRPCPlugin so we can serve/consume this.

func (*RuntimePlugin) Client

func (p *RuntimePlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

GRPCPlugin must still implement the Plugin interface

func (*RuntimePlugin) GRPCClient

func (p *RuntimePlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*RuntimePlugin) GRPCServer

func (p *RuntimePlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

func (*RuntimePlugin) Server

func (p *RuntimePlugin) Server(broker *plugin.MuxBroker) (interface{}, error)

Jump to

Keyboard shortcuts

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