Documentation
¶
Index ¶
- Constants
- Variables
- func NewRuntimePluginSet(server *server.Server) plugin.PluginSet
- type RuntimePlugin
- func (p *RuntimePlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)
- func (p *RuntimePlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
- func (p *RuntimePlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
- func (p *RuntimePlugin) Server(broker *plugin.MuxBroker) (interface{}, error)
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 ¶
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) 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
Click to show internal directories.
Click to hide internal directories.