driver

package
v0.0.0-...-d9d3ccb Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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 implements plugins.Driver over gRPC.

func NewClient

func NewClient(conn *grpc.ClientConn, broker *goplugin.GRPCBroker) *Client

func (*Client) CloseDriver

func (c *Client) CloseDriver(ctx context.Context) error

func (*Client) ConfigDriver

func (c *Client) ConfigDriver(ctx context.Context, config plugins.PluginConfig) error

func (*Client) GetCapabilities

func (c *Client) GetCapabilities(ctx context.Context) (*plugins.DriverCapabilities, error)

func (*Client) GetChannelPlugin

func (c *Client) GetChannelPlugin(ctx context.Context) (plugins.ChannelPlugin, error)

func (*Client) GetMemoryPlugin

func (c *Client) GetMemoryPlugin(ctx context.Context) (plugins.MemoryPlugin, error)

func (*Client) GetPluginInfo

func (c *Client) GetPluginInfo() plugins.PluginInfo

func (*Client) GetProviderPlugin

func (c *Client) GetProviderPlugin(ctx context.Context) (plugins.ProviderPlugin, error)

func (*Client) GetSandboxPlugin

func (c *Client) GetSandboxPlugin(ctx context.Context) (plugins.SandboxPlugin, error)

func (*Client) GetToolsPlugin

func (c *Client) GetToolsPlugin(ctx context.Context) (plugins.ToolsPlugin, error)

func (*Client) OpenDriver

func (c *Client) OpenDriver(ctx context.Context) error

func (*Client) ProbePlugin

func (c *Client) ProbePlugin(ctx context.Context) (bool, error)

type Server

type Server struct {
	proto.UnimplementedDriverServiceServer
	// contains filtered or unexported fields
}

Server implements DriverServiceServer, bridging gRPC calls to the Driver interface.

func NewServer

func NewServer(impl plugins.Driver, broker *goplugin.GRPCBroker) *Server

func (*Server) CloseDriver

func (s *Server) CloseDriver(ctx context.Context, req *proto.CloseRequest) (*proto.CloseResponse, error)

func (*Server) ConfigDriver

func (s *Server) ConfigDriver(ctx context.Context, req *proto.ConfigRequest) (*proto.ConfigResponse, error)

func (*Server) GetCapabilities

func (s *Server) GetCapabilities(ctx context.Context, req *proto.CapabilitiesRequest) (*proto.CapabilitiesResponse, error)

func (*Server) GetChannelPlugin

func (s *Server) GetChannelPlugin(ctx context.Context, req *proto.GetPluginRequest) (*proto.GetPluginResponse, error)

func (*Server) GetMemoryPlugin

func (s *Server) GetMemoryPlugin(ctx context.Context, req *proto.GetPluginRequest) (*proto.GetPluginResponse, error)

func (*Server) GetPluginInfo

func (*Server) GetProviderPlugin

func (s *Server) GetProviderPlugin(ctx context.Context, req *proto.GetPluginRequest) (*proto.GetPluginResponse, error)

func (*Server) GetSandboxPlugin

func (s *Server) GetSandboxPlugin(ctx context.Context, req *proto.GetPluginRequest) (*proto.GetPluginResponse, error)

func (*Server) GetToolsPlugin

func (s *Server) GetToolsPlugin(ctx context.Context, req *proto.GetPluginRequest) (*proto.GetPluginResponse, error)

func (*Server) OpenDriver

func (s *Server) OpenDriver(ctx context.Context, req *proto.OpenRequest) (*proto.OpenResponse, error)

func (*Server) ProbePlugin

func (s *Server) ProbePlugin(ctx context.Context, req *proto.ProbeRequest) (*proto.ProbeResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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