lifecycle

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: AGPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

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 NewClient

NewClient creates a properly initialized lifecycle Client.

func (*Client) GetCapabilities

func (c *Client) GetCapabilities(ctx context.Context) (*lifecyclepb.GetCapabilitiesResponse, error)

func (*Client) GetInfo

func (c *Client) GetInfo(ctx context.Context) (*lifecyclepb.GetInfoResponse, error)

func (*Client) HealthCheck

func (c *Client) HealthCheck(ctx context.Context) (*lifecyclepb.HealthCheckResponse, error)

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

func (p *Plugin) GRPCServer(_ *plugin.GRPCBroker, s *grpc.Server) error

type Server

type Server struct {
	lifecyclepb.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) GetInfo

func (*Server) HealthCheck

Jump to

Keyboard shortcuts

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