Documentation
¶
Index ¶
- type Client
- func (c *Client) CloseDriver(ctx context.Context) error
- func (c *Client) ConfigDriver(ctx context.Context, config plugins.PluginConfig) error
- func (c *Client) GetCapabilities(ctx context.Context) (*plugins.DriverCapabilities, error)
- func (c *Client) GetChannelPlugin(ctx context.Context) (plugins.ChannelPlugin, error)
- func (c *Client) GetMemoryPlugin(ctx context.Context) (plugins.MemoryPlugin, error)
- func (c *Client) GetPluginInfo() plugins.PluginInfo
- func (c *Client) GetProviderPlugin(ctx context.Context) (plugins.ProviderPlugin, error)
- func (c *Client) GetSandboxPlugin(ctx context.Context) (plugins.SandboxPlugin, error)
- func (c *Client) GetToolsPlugin(ctx context.Context) (plugins.ToolsPlugin, error)
- func (c *Client) OpenDriver(ctx context.Context) error
- func (c *Client) ProbePlugin(ctx context.Context) (bool, error)
- type Server
- func (s *Server) CloseDriver(ctx context.Context, req *proto.CloseRequest) (*proto.CloseResponse, error)
- func (s *Server) ConfigDriver(ctx context.Context, req *proto.ConfigRequest) (*proto.ConfigResponse, error)
- func (s *Server) GetCapabilities(ctx context.Context, req *proto.CapabilitiesRequest) (*proto.CapabilitiesResponse, error)
- func (s *Server) GetChannelPlugin(ctx context.Context, req *proto.GetPluginRequest) (*proto.GetPluginResponse, error)
- func (s *Server) GetMemoryPlugin(ctx context.Context, req *proto.GetPluginRequest) (*proto.GetPluginResponse, error)
- func (s *Server) GetPluginInfo(ctx context.Context, req *proto.GetPluginInfoRequest) (*proto.GetPluginInfoResponse, error)
- func (s *Server) GetProviderPlugin(ctx context.Context, req *proto.GetPluginRequest) (*proto.GetPluginResponse, error)
- func (s *Server) GetSandboxPlugin(ctx context.Context, req *proto.GetPluginRequest) (*proto.GetPluginResponse, error)
- func (s *Server) GetToolsPlugin(ctx context.Context, req *proto.GetPluginRequest) (*proto.GetPluginResponse, error)
- func (s *Server) OpenDriver(ctx context.Context, req *proto.OpenRequest) (*proto.OpenResponse, error)
- func (s *Server) ProbePlugin(ctx context.Context, req *proto.ProbeRequest) (*proto.ProbeResponse, 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 implements plugins.Driver over gRPC.
func NewClient ¶
func NewClient(conn *grpc.ClientConn, broker *goplugin.GRPCBroker) *Client
func (*Client) ConfigDriver ¶
func (*Client) GetCapabilities ¶
func (*Client) GetChannelPlugin ¶
func (*Client) GetMemoryPlugin ¶
func (*Client) GetPluginInfo ¶
func (c *Client) GetPluginInfo() plugins.PluginInfo
func (*Client) GetProviderPlugin ¶
func (*Client) GetSandboxPlugin ¶
func (*Client) GetToolsPlugin ¶
type Server ¶
type Server struct {
proto.UnimplementedDriverServiceServer
// contains filtered or unexported fields
}
Server implements DriverServiceServer, bridging gRPC calls to the Driver interface.
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 (s *Server) GetPluginInfo(ctx context.Context, req *proto.GetPluginInfoRequest) (*proto.GetPluginInfoResponse, error)
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)
Click to show internal directories.
Click to hide internal directories.