catalogtest

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 9 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 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.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

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type HostServiceServer

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

HostServiceServer is the server API for HostService service.

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

func (*Request) GetIn

func (m *Request) GetIn() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

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

func (*Response) GetOut

func (m *Response) GetOut() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

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

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

func (*UnimplementedHostServiceServer) CallHostService(ctx context.Context, req *Request) (*Response, error)

type UnimplementedPluginServer

type UnimplementedPluginServer struct {
}

UnimplementedPluginServer can be embedded to have forward compatible implementations.

func (*UnimplementedPluginServer) CallPlugin

func (*UnimplementedPluginServer) CallPlugin(ctx context.Context, req *Request) (*Response, error)

func (*UnimplementedPluginServer) Configure

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServiceServer) CallService

func (*UnimplementedServiceServer) CallService(ctx context.Context, req *Request) (*Response, error)

Jump to

Keyboard shortcuts

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