catalogtest

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

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

View Source
const (
	HostServiceType = "HostService"
)
View Source
const (
	PluginType = "Plugin"
)
View Source
const (
	ServiceType = "Service"
)

Variables

View Source
var File_private_test_catalogtest_test_proto protoreflect.FileDescriptor
View Source
var PluginPluginClient catalog.PluginClient = pluginPluginClient{}

PluginPluginClient is a catalog PluginClient implementation for the Plugin plugin.

View Source
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

type HostService interface {
	CallHostService(context.Context, *Request) (*Response, error)
}

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.

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

type Plugin interface {
	CallPlugin(context.Context, *Request) (*Response, error)
}

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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetIn

func (x *Request) GetIn() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect added in v0.12.0

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetOut

func (x *Response) GetOut() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect added in v0.12.0

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Service

type Service interface {
	CallService(context.Context, *Request) (*Response, error)
}

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

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.

Jump to

Keyboard shortcuts

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