Documentation
¶
Index ¶
- type Client
- type Plugin
- type Server
- func (s *Server) GetCapabilities(_ context.Context, _ *emptypb.Empty) (*proto.GetCapabilitiesResponse, error)
- func (s *Server) GetInfo(_ context.Context, _ *emptypb.Empty) (*proto.GetInfoResponse, error)
- func (s *Server) HealthCheck(_ context.Context, _ *emptypb.Empty) (*proto.HealthCheckResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the generated gRPC client for the PluginLifecycle service.
func (*Client) GetCapabilities ¶
func (*Client) HealthCheck ¶
type Plugin ¶
type Plugin struct {
plugin.Plugin
// Impl is the concrete server implementation (set on plugin side).
Impl *Server
}
Plugin implements the go-plugin.Plugin interface for the lifecycle service. On the server side it registers the Server implementation. On the client side it returns a Client that wraps the gRPC stub.
func (*Plugin) GRPCClient ¶
func (p *Plugin) GRPCClient( _ context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn, ) (interface{}, error)
func (*Plugin) GRPCServer ¶
type Server ¶
type Server struct {
proto.UnimplementedPluginLifecycleServer
PluginID string
Version string
SDKProtocolVersion int32
Capabilities []string
}
Server implements the PluginLifecycle gRPC service. It is auto-populated by sdk.Plugin.Serve() — plugin authors never touch it.
func (*Server) GetCapabilities ¶
func (*Server) HealthCheck ¶
Click to show internal directories.
Click to hide internal directories.