Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(name string, serve kfprotov1.ProviderServer, opts ...ServeOpt) kfplugin1.ProviderServer
New converts a kfprotov1.ProviderServer into a server capable of handling kform protocol requests and issuing responses using the gRPC types.
Types ¶
type GRPCProviderPlugin ¶
type GRPCProviderPlugin struct {
GRPCProvider func() kfprotov1.ProviderServer
Opts []ServeOpt
Name string
}
func (*GRPCProviderPlugin) GRPCClient ¶
func (p *GRPCProviderPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*GRPCProviderPlugin) GRPCServer ¶
func (p *GRPCProviderPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
type ServeConfig ¶
type ServeConfig struct {
// contains filtered or unexported fields
}
type ServeOpt ¶
type ServeOpt interface {
ApplyServeOpt(*ServeConfig) error
}
func WithGoPluginLogger ¶
WithGoPluginLogger returns a ServeOpt that will set the logger that go-plugin should use to log messages.
Click to show internal directories.
Click to hide internal directories.