Help us shape the future of Go! Take the 2026 Go Developer Survey

plugin

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StdioData_Channel_name = map[int32]string{
	0: "INVALID",
	1: "STDOUT",
	2: "STDERR",
}
View Source
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 added in v1.1.0

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

func (*ConnInfo) GetAddress

func (m *ConnInfo) GetAddress() string

func (*ConnInfo) GetNetwork

func (m *ConnInfo) GetNetwork() string

func (*ConnInfo) GetServiceId

func (m *ConnInfo) GetServiceId() uint32

func (*ConnInfo) ProtoMessage

func (*ConnInfo) ProtoMessage()

func (*ConnInfo) Reset

func (m *ConnInfo) Reset()

func (*ConnInfo) String

func (m *ConnInfo) String() string

func (*ConnInfo) XXX_DiscardUnknown

func (m *ConnInfo) XXX_DiscardUnknown()

func (*ConnInfo) XXX_Marshal

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

func (*ConnInfo) XXX_Merge

func (dst *ConnInfo) XXX_Merge(src proto.Message)

func (*ConnInfo) XXX_Size

func (m *ConnInfo) XXX_Size() int

func (*ConnInfo) XXX_Unmarshal

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

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

func (dst *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

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 GRPCBroker_StartStreamClient

type GRPCBroker_StartStreamClient interface {
	Send(*ConnInfo) error
	Recv() (*ConnInfo, error)
	grpc.ClientStream
}

type GRPCBroker_StartStreamServer

type GRPCBroker_StartStreamServer interface {
	Send(*ConnInfo) error
	Recv() (*ConnInfo, error)
	grpc.ServerStream
}

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

type GRPCControllerServer interface {
	Shutdown(context.Context, *Empty) (*Empty, error)
}

GRPCControllerServer is the server API for GRPCController service.

type GRPCStdioClient added in v1.1.0

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 added in v1.1.0

func NewGRPCStdioClient(cc *grpc.ClientConn) GRPCStdioClient

type GRPCStdioServer added in v1.1.0

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 added in v1.1.0

type GRPCStdio_StreamStdioClient interface {
	Recv() (*StdioData, error)
	grpc.ClientStream
}

type GRPCStdio_StreamStdioServer added in v1.1.0

type GRPCStdio_StreamStdioServer interface {
	Send(*StdioData) error
	grpc.ServerStream
}

type StdioData added in v1.1.0

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 added in v1.1.0

func (*StdioData) Descriptor() ([]byte, []int)

func (*StdioData) GetChannel added in v1.1.0

func (m *StdioData) GetChannel() StdioData_Channel

func (*StdioData) GetData added in v1.1.0

func (m *StdioData) GetData() []byte

func (*StdioData) ProtoMessage added in v1.1.0

func (*StdioData) ProtoMessage()

func (*StdioData) Reset added in v1.1.0

func (m *StdioData) Reset()

func (*StdioData) String added in v1.1.0

func (m *StdioData) String() string

func (*StdioData) XXX_DiscardUnknown added in v1.1.0

func (m *StdioData) XXX_DiscardUnknown()

func (*StdioData) XXX_Marshal added in v1.1.0

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

func (*StdioData) XXX_Merge added in v1.1.0

func (dst *StdioData) XXX_Merge(src proto.Message)

func (*StdioData) XXX_Size added in v1.1.0

func (m *StdioData) XXX_Size() int

func (*StdioData) XXX_Unmarshal added in v1.1.0

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

type StdioData_Channel added in v1.1.0

type StdioData_Channel int32
const (
	StdioData_INVALID StdioData_Channel = 0
	StdioData_STDOUT  StdioData_Channel = 1
	StdioData_STDERR  StdioData_Channel = 2
)

func (StdioData_Channel) EnumDescriptor added in v1.1.0

func (StdioData_Channel) EnumDescriptor() ([]byte, []int)

func (StdioData_Channel) String added in v1.1.0

func (x StdioData_Channel) String() string

Jump to

Keyboard shortcuts

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