Documentation ¶
Index ¶
- Variables
- func RegisterGRPCBrokerServer(s *grpc.Server, srv GRPCBrokerServer)
- func RegisterGRPCControllerServer(s *grpc.Server, srv GRPCControllerServer)
- func RegisterGRPCStdioServer(s *grpc.Server, srv GRPCStdioServer)
- type ConnInfo
- func (*ConnInfo) Descriptor() ([]byte, []int)
- func (m *ConnInfo) GetAddress() string
- func (m *ConnInfo) GetNetwork() string
- func (m *ConnInfo) GetServiceId() uint32
- func (*ConnInfo) ProtoMessage()
- func (m *ConnInfo) Reset()
- func (m *ConnInfo) String() string
- func (m *ConnInfo) XXX_DiscardUnknown()
- func (m *ConnInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ConnInfo) XXX_Merge(src proto.Message)
- func (m *ConnInfo) XXX_Size() int
- func (m *ConnInfo) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type GRPCBrokerClient
- type GRPCBrokerServer
- type GRPCBroker_StartStreamClient
- type GRPCBroker_StartStreamServer
- type GRPCControllerClient
- type GRPCControllerServer
- type GRPCStdioClient
- type GRPCStdioServer
- type GRPCStdio_StreamStdioClient
- type GRPCStdio_StreamStdioServer
- type StdioData
- func (*StdioData) Descriptor() ([]byte, []int)
- func (m *StdioData) GetChannel() StdioData_Channel
- func (m *StdioData) GetData() []byte
- func (*StdioData) ProtoMessage()
- func (m *StdioData) Reset()
- func (m *StdioData) String() string
- func (m *StdioData) XXX_DiscardUnknown()
- func (m *StdioData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StdioData) XXX_Merge(src proto.Message)
- func (m *StdioData) XXX_Size() int
- func (m *StdioData) XXX_Unmarshal(b []byte) error
- type StdioData_Channel
Constants ¶
This section is empty.
Variables ¶
var StdioData_Channel_name = map[int32]string{
0: "INVALID",
1: "STDOUT",
2: "STDERR",
}
var StdioData_Channel_value = map[string]int32{
"INVALID": 0,
"STDOUT": 1,
"STDERR": 2,
}
Functions ¶
func RegisterGRPCBrokerServer ¶
func RegisterGRPCBrokerServer(s *grpc.Server, srv GRPCBrokerServer)
func RegisterGRPCControllerServer ¶
func RegisterGRPCControllerServer(s *grpc.Server, srv GRPCControllerServer)
func RegisterGRPCStdioServer ¶
func RegisterGRPCStdioServer(s *grpc.Server, srv GRPCStdioServer)
Types ¶
type ConnInfo ¶
type ConnInfo struct { ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConnInfo) Descriptor ¶
func (*ConnInfo) GetAddress ¶
func (*ConnInfo) GetNetwork ¶
func (*ConnInfo) GetServiceId ¶
func (*ConnInfo) ProtoMessage ¶
func (*ConnInfo) ProtoMessage()
func (*ConnInfo) XXX_DiscardUnknown ¶
func (m *ConnInfo) XXX_DiscardUnknown()
func (*ConnInfo) XXX_Marshal ¶
func (*ConnInfo) XXX_Unmarshal ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type GRPCBrokerClient ¶
type GRPCBrokerClient interface {
StartStream(ctx context.Context, opts ...grpc.CallOption) (GRPCBroker_StartStreamClient, error)
}
GRPCBrokerClient is the client API for GRPCBroker service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGRPCBrokerClient ¶
func NewGRPCBrokerClient(cc *grpc.ClientConn) GRPCBrokerClient
type GRPCBrokerServer ¶
type GRPCBrokerServer interface {
StartStream(GRPCBroker_StartStreamServer) error
}
GRPCBrokerServer is the server API for GRPCBroker service.
type GRPCControllerClient ¶
type GRPCControllerClient interface {
Shutdown(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}
GRPCControllerClient is the client API for GRPCController service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGRPCControllerClient ¶
func NewGRPCControllerClient(cc *grpc.ClientConn) GRPCControllerClient
type GRPCControllerServer ¶
GRPCControllerServer is the server API for GRPCController service.
type GRPCStdioClient ¶
type GRPCStdioClient interface { // StreamStdio returns a stream that contains all the stdout/stderr. // This RPC endpoint must only be called ONCE. Once stdio data is consumed // it is not sent again. // // Callers should connect early to prevent blocking on the plugin process. StreamStdio(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (GRPCStdio_StreamStdioClient, error) }
GRPCStdioClient is the client API for GRPCStdio service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGRPCStdioClient ¶
func NewGRPCStdioClient(cc *grpc.ClientConn) GRPCStdioClient
type GRPCStdioServer ¶
type GRPCStdioServer interface { // StreamStdio returns a stream that contains all the stdout/stderr. // This RPC endpoint must only be called ONCE. Once stdio data is consumed // it is not sent again. // // Callers should connect early to prevent blocking on the plugin process. StreamStdio(*empty.Empty, GRPCStdio_StreamStdioServer) error }
GRPCStdioServer is the server API for GRPCStdio service.
type GRPCStdio_StreamStdioClient ¶
type GRPCStdio_StreamStdioClient interface { Recv() (*StdioData, error) grpc.ClientStream }
type GRPCStdio_StreamStdioServer ¶
type GRPCStdio_StreamStdioServer interface { Send(*StdioData) error grpc.ServerStream }
type StdioData ¶
type StdioData struct { Channel StdioData_Channel `protobuf:"varint,1,opt,name=channel,proto3,enum=plugin.StdioData_Channel" json:"channel,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
StdioData is a single chunk of stdout or stderr data that is streamed from GRPCStdio.
func (*StdioData) Descriptor ¶
func (*StdioData) GetChannel ¶
func (m *StdioData) GetChannel() StdioData_Channel
func (*StdioData) ProtoMessage ¶
func (*StdioData) ProtoMessage()
func (*StdioData) XXX_DiscardUnknown ¶
func (m *StdioData) XXX_DiscardUnknown()
func (*StdioData) XXX_Marshal ¶
func (*StdioData) XXX_Unmarshal ¶
type StdioData_Channel ¶
type StdioData_Channel int32
const ( StdioData_INVALID StdioData_Channel = 0 StdioData_STDOUT StdioData_Channel = 1 StdioData_STDERR StdioData_Channel = 2 )
func (StdioData_Channel) EnumDescriptor ¶
func (StdioData_Channel) EnumDescriptor() ([]byte, []int)
func (StdioData_Channel) String ¶
func (x StdioData_Channel) String() string