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.ServiceRegistrar, srv HostServiceServer)
- func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- func ServiceServiceServer(server ServiceServer) catalog.ServiceServer
- type HostService
- type HostServiceClient
- type HostServiceServer
- type Plugin
- type PluginClient
- type PluginPlugin
- type PluginServer
- type Request
- type Response
- type Service
- type ServiceClient
- type ServiceServer
- type UnimplementedHostServiceServer
- type UnimplementedPluginServer
- type UnimplementedServiceServer
- type UnsafeHostServiceServer
- type UnsafePluginServer
- type UnsafeServiceServer
Constants ¶
const (
HostServiceType = "HostService"
)
const (
PluginType = "Plugin"
)
const (
ServiceType = "Service"
)
Variables ¶
var File_private_test_catalogtest_test_proto protoreflect.FileDescriptor
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.ServiceRegistrar, srv HostServiceServer)
func RegisterPluginServer ¶
func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, 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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHostServiceClient ¶
func NewHostServiceClient(cc grpc.ClientConnInterface) HostServiceClient
type HostServiceServer ¶
type HostServiceServer interface { CallHostService(context.Context, *Request) (*Response, error) // contains filtered or unexported methods }
HostServiceServer is the server API for HostService service. All implementations must embed UnimplementedHostServiceServer for forward compatibility
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#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) // contains filtered or unexported methods }
PluginServer is the server API for Plugin service. All implementations must embed UnimplementedPluginServer for forward compatibility
type Request ¶
type Request struct { In string `protobuf:"bytes,1,opt,name=in,proto3" json:"in,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶ added in v0.12.0
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Out string `protobuf:"bytes,1,opt,name=out,proto3" json:"out,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶ added in v0.12.0
func (x *Response) ProtoReflect() protoreflect.Message
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { CallService(context.Context, *Request) (*Response, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedHostServiceServer ¶
type UnimplementedHostServiceServer struct { }
UnimplementedHostServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHostServiceServer) CallHostService ¶
type UnimplementedPluginServer ¶
type UnimplementedPluginServer struct { }
UnimplementedPluginServer must be embedded to have forward compatible implementations.
func (UnimplementedPluginServer) CallPlugin ¶
func (UnimplementedPluginServer) Configure ¶
func (UnimplementedPluginServer) Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) CallService ¶
type UnsafeHostServiceServer ¶ added in v0.12.0
type UnsafeHostServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHostServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HostServiceServer will result in compilation errors.
type UnsafePluginServer ¶ added in v0.12.0
type UnsafePluginServer interface {
// contains filtered or unexported methods
}
UnsafePluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PluginServer will result in compilation errors.
type UnsafeServiceServer ¶ added in v0.12.0
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.