Documentation ¶
Overview ¶
Provides interfaces and adapters for the HostService service
Generated code. Do not modify by hand.
Provides interfaces and adapters for the Plugin service ¶
Generated code. Do not modify by hand.
Provides interfaces and adapters for the Service service ¶
Generated code. Do not modify by hand.
Index ¶
- Constants
- Variables
- func HostServiceHostServiceClient(client *HostService) catalog.HostServiceClient
- func HostServiceHostServiceServer(server HostServiceServer) catalog.HostServiceServer
- func PluginPluginServer(server PluginServer) catalog.PluginServer
- func RegisterHostServiceServer(s *grpc.Server, srv HostServiceServer)
- func RegisterPluginServer(s *grpc.Server, srv PluginServer)
- func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
- func ServiceServiceServer(server ServiceServer) catalog.ServiceServer
- type HostService
- type HostServiceClient
- type HostServiceServer
- type Plugin
- type PluginClient
- type PluginPlugin
- type PluginServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetIn() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetOut() string
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type Service
- type ServiceClient
- type ServiceServer
- type UnimplementedHostServiceServer
- type UnimplementedPluginServer
- type UnimplementedServiceServer
Constants ¶
const (
HostServiceType = "HostService"
)
const (
PluginType = "Plugin"
)
const (
ServiceType = "Service"
)
Variables ¶
var PluginPluginClient catalog.PluginClient = pluginPluginClient{}
PluginPluginClient is a catalog PluginClient implementation for the Plugin plugin.
var ServiceServiceClient catalog.ServiceClient = serviceServiceClient{}
ServiceServiceClient is a catalog ServiceClient implementation for the Service plugin.
Functions ¶
func HostServiceHostServiceClient ¶
func HostServiceHostServiceClient(client *HostService) catalog.HostServiceClient
HostServiceHostServiceServer returns a catalog HostServiceServer implementation for the HostService plugin.
func HostServiceHostServiceServer ¶
func HostServiceHostServiceServer(server HostServiceServer) catalog.HostServiceServer
HostServiceHostServiceServer returns a catalog HostServiceServer implementation for the HostService plugin.
func PluginPluginServer ¶
func PluginPluginServer(server PluginServer) catalog.PluginServer
PluginPluginServer returns a catalog PluginServer implementation for the Plugin plugin.
func RegisterHostServiceServer ¶
func RegisterHostServiceServer(s *grpc.Server, srv HostServiceServer)
func RegisterPluginServer ¶
func RegisterPluginServer(s *grpc.Server, srv PluginServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
func ServiceServiceServer ¶
func ServiceServiceServer(server ServiceServer) catalog.ServiceServer
ServiceServiceServer returns a catalog ServiceServer implementation for the Service plugin.
Types ¶
type HostService ¶
HostService is the client interface for the service type HostService interface.
func AdaptHostServiceHostServiceClient ¶
func AdaptHostServiceHostServiceClient(client HostServiceClient) HostService
type HostServiceClient ¶
type HostServiceClient interface {
CallHostService(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
HostServiceClient is the client API for HostService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHostServiceClient ¶
func NewHostServiceClient(cc grpc.ClientConnInterface) HostServiceClient
type HostServiceServer ¶
HostServiceServer is the server API for HostService service.
type Plugin ¶
Plugin is the client interface for the service type Plugin interface.
func AdaptPluginPluginClient ¶
func AdaptPluginPluginClient(client PluginClient) Plugin
type PluginClient ¶
type PluginClient interface { CallPlugin(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) Configure(ctx context.Context, in *plugin.ConfigureRequest, opts ...grpc.CallOption) (*plugin.ConfigureResponse, error) }
PluginClient is the client API for Plugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPluginClient ¶
func NewPluginClient(cc grpc.ClientConnInterface) PluginClient
type PluginPlugin ¶
type PluginPlugin interface { CallPlugin(context.Context, *Request) (*Response, error) Configure(context.Context, *spi.ConfigureRequest) (*spi.ConfigureResponse, error) }
PluginPlugin is the client interface for the service with the plugin related methods used by the catalog to initialize the plugin.
type PluginServer ¶
type PluginServer interface { CallPlugin(context.Context, *Request) (*Response, error) Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error) }
PluginServer is the server API for Plugin service.
type Request ¶
type Request struct { In string `protobuf:"bytes,1,opt,name=in,proto3" json:"in,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Out string `protobuf:"bytes,1,opt,name=out,proto3" json:"out,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type Service ¶
Service is the client interface for the service type Service interface.
func AdaptServiceServiceClient ¶
func AdaptServiceServiceClient(client ServiceClient) Service
type ServiceClient ¶
type ServiceClient interface {
CallService(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
ServiceClient is the client API for Service service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
ServiceServer is the server API for Service service.
type UnimplementedHostServiceServer ¶
type UnimplementedHostServiceServer struct { }
UnimplementedHostServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedHostServiceServer) CallHostService ¶
type UnimplementedPluginServer ¶
type UnimplementedPluginServer struct { }
UnimplementedPluginServer can be embedded to have forward compatible implementations.
func (*UnimplementedPluginServer) CallPlugin ¶
func (*UnimplementedPluginServer) Configure ¶
func (*UnimplementedPluginServer) Configure(ctx context.Context, req *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer can be embedded to have forward compatible implementations.