cloud

package
v1.11.22 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogsStreamRequestType_name = map[int32]string{
		0: "STREAM_LOG_MESSAGE",
		1: "STREAM_HEALTH_CHECK",
	}
	LogsStreamRequestType_value = map[string]int32{
		"STREAM_LOG_MESSAGE":  0,
		"STREAM_HEALTH_CHECK": 1,
	}
)

Enum value maps for LogsStreamRequestType.

View Source
var (
	Opcode_name = map[int32]string{
		0: "UNSPECFIED",
		1: "TEXT_FRAME",
		2: "BINARY_FRAME",
		3: "HEALTH_CHECK",
	}
	Opcode_value = map[string]int32{
		"UNSPECFIED":   0,
		"TEXT_FRAME":   1,
		"BINARY_FRAME": 2,
		"HEALTH_CHECK": 3,
	}
)

Enum value maps for Opcode.

View Source
var File_proto_service_proto protoreflect.FileDescriptor
View Source
var TestKubeCloudAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloud.TestKubeCloudAPI",
	HandlerType: (*TestKubeCloudAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Call",
			Handler:    _TestKubeCloudAPI_Call_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Execute",
			Handler:       _TestKubeCloudAPI_Execute_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "Send",
			Handler:       _TestKubeCloudAPI_Send_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "ExecuteAsync",
			Handler:       _TestKubeCloudAPI_ExecuteAsync_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "GetLogsStream",
			Handler:       _TestKubeCloudAPI_GetLogsStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "proto/service.proto",
}

TestKubeCloudAPI_ServiceDesc is the grpc.ServiceDesc for TestKubeCloudAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTestKubeCloudAPIServer

func RegisterTestKubeCloudAPIServer(s grpc.ServiceRegistrar, srv TestKubeCloudAPIServer)

Types

type CommandRequest added in v1.8.34

type CommandRequest struct {
	Command string           `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	Payload *structpb.Struct `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandRequest) Descriptor deprecated added in v1.8.34

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

Deprecated: Use CommandRequest.ProtoReflect.Descriptor instead.

func (*CommandRequest) GetCommand added in v1.8.34

func (x *CommandRequest) GetCommand() string

func (*CommandRequest) GetPayload added in v1.8.34

func (x *CommandRequest) GetPayload() *structpb.Struct

func (*CommandRequest) ProtoMessage added in v1.8.34

func (*CommandRequest) ProtoMessage()

func (*CommandRequest) ProtoReflect added in v1.8.34

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

func (*CommandRequest) Reset added in v1.8.34

func (x *CommandRequest) Reset()

func (*CommandRequest) String added in v1.8.34

func (x *CommandRequest) String() string

type CommandResponse added in v1.8.34

type CommandResponse struct {
	Response []byte `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandResponse) Descriptor deprecated added in v1.8.34

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

Deprecated: Use CommandResponse.ProtoReflect.Descriptor instead.

func (*CommandResponse) GetResponse added in v1.8.34

func (x *CommandResponse) GetResponse() []byte

func (*CommandResponse) ProtoMessage added in v1.8.34

func (*CommandResponse) ProtoMessage()

func (*CommandResponse) ProtoReflect added in v1.8.34

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

func (*CommandResponse) Reset added in v1.8.34

func (x *CommandResponse) Reset()

func (*CommandResponse) String added in v1.8.34

func (x *CommandResponse) String() string

type ExecuteRequest

type ExecuteRequest struct {
	Method    string                  `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Url       string                  `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Headers   map[string]*HeaderValue `` /* 155-byte string literal not displayed */
	Body      []byte                  `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	MessageId string                  `protobuf:"bytes,5,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteRequest) Descriptor deprecated

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

Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead.

func (*ExecuteRequest) GetBody

func (x *ExecuteRequest) GetBody() []byte

func (*ExecuteRequest) GetHeaders

func (x *ExecuteRequest) GetHeaders() map[string]*HeaderValue

func (*ExecuteRequest) GetMessageId added in v1.10.14

func (x *ExecuteRequest) GetMessageId() string

func (*ExecuteRequest) GetMethod

func (x *ExecuteRequest) GetMethod() string

func (*ExecuteRequest) GetUrl

func (x *ExecuteRequest) GetUrl() string

func (*ExecuteRequest) ProtoMessage

func (*ExecuteRequest) ProtoMessage()

func (*ExecuteRequest) ProtoReflect

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

func (*ExecuteRequest) Reset

func (x *ExecuteRequest) Reset()

func (*ExecuteRequest) String

func (x *ExecuteRequest) String() string

type ExecuteResponse

type ExecuteResponse struct {
	Status    int64                   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Headers   map[string]*HeaderValue `` /* 155-byte string literal not displayed */
	Body      []byte                  `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	MessageId string                  `protobuf:"bytes,4,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteResponse) Descriptor deprecated

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

Deprecated: Use ExecuteResponse.ProtoReflect.Descriptor instead.

func (*ExecuteResponse) GetBody

func (x *ExecuteResponse) GetBody() []byte

func (*ExecuteResponse) GetHeaders

func (x *ExecuteResponse) GetHeaders() map[string]*HeaderValue

func (*ExecuteResponse) GetMessageId added in v1.10.14

func (x *ExecuteResponse) GetMessageId() string

func (*ExecuteResponse) GetStatus

func (x *ExecuteResponse) GetStatus() int64

func (*ExecuteResponse) ProtoMessage

func (*ExecuteResponse) ProtoMessage()

func (*ExecuteResponse) ProtoReflect

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

func (*ExecuteResponse) Reset

func (x *ExecuteResponse) Reset()

func (*ExecuteResponse) String

func (x *ExecuteResponse) String() string

type HeaderValue

type HeaderValue struct {
	Header []string `protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*HeaderValue) Descriptor deprecated

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

Deprecated: Use HeaderValue.ProtoReflect.Descriptor instead.

func (*HeaderValue) GetHeader

func (x *HeaderValue) GetHeader() []string

func (*HeaderValue) ProtoMessage

func (*HeaderValue) ProtoMessage()

func (*HeaderValue) ProtoReflect

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

func (*HeaderValue) Reset

func (x *HeaderValue) Reset()

func (*HeaderValue) String

func (x *HeaderValue) String() string

type LogsStreamRequest added in v1.10.22

type LogsStreamRequest struct {
	StreamId    string                `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
	ExecutionId string                `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"`
	RequestType LogsStreamRequestType `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LogsStreamRequest) Descriptor deprecated added in v1.10.22

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

Deprecated: Use LogsStreamRequest.ProtoReflect.Descriptor instead.

func (*LogsStreamRequest) GetExecutionId added in v1.10.22

func (x *LogsStreamRequest) GetExecutionId() string

func (*LogsStreamRequest) GetRequestType added in v1.10.26

func (x *LogsStreamRequest) GetRequestType() LogsStreamRequestType

func (*LogsStreamRequest) GetStreamId added in v1.10.22

func (x *LogsStreamRequest) GetStreamId() string

func (*LogsStreamRequest) ProtoMessage added in v1.10.22

func (*LogsStreamRequest) ProtoMessage()

func (*LogsStreamRequest) ProtoReflect added in v1.10.22

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

func (*LogsStreamRequest) Reset added in v1.10.22

func (x *LogsStreamRequest) Reset()

func (*LogsStreamRequest) String added in v1.10.22

func (x *LogsStreamRequest) String() string

type LogsStreamRequestType added in v1.10.26

type LogsStreamRequestType int32
const (
	LogsStreamRequestType_STREAM_LOG_MESSAGE  LogsStreamRequestType = 0
	LogsStreamRequestType_STREAM_HEALTH_CHECK LogsStreamRequestType = 1
)

func (LogsStreamRequestType) Descriptor added in v1.10.26

func (LogsStreamRequestType) Enum added in v1.10.26

func (LogsStreamRequestType) EnumDescriptor deprecated added in v1.10.26

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

Deprecated: Use LogsStreamRequestType.Descriptor instead.

func (LogsStreamRequestType) Number added in v1.10.26

func (LogsStreamRequestType) String added in v1.10.26

func (x LogsStreamRequestType) String() string

func (LogsStreamRequestType) Type added in v1.10.26

type LogsStreamResponse added in v1.10.22

type LogsStreamResponse struct {
	StreamId   string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
	SeqNo      int64  `protobuf:"varint,2,opt,name=seq_no,json=seqNo,proto3" json:"seq_no,omitempty"`
	LogMessage string `protobuf:"bytes,3,opt,name=log_message,json=logMessage,proto3" json:"log_message,omitempty"`
	IsError    bool   `protobuf:"varint,4,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"`
	// contains filtered or unexported fields
}

func (*LogsStreamResponse) Descriptor deprecated added in v1.10.22

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

Deprecated: Use LogsStreamResponse.ProtoReflect.Descriptor instead.

func (*LogsStreamResponse) GetIsError added in v1.10.22

func (x *LogsStreamResponse) GetIsError() bool

func (*LogsStreamResponse) GetLogMessage added in v1.10.22

func (x *LogsStreamResponse) GetLogMessage() string

func (*LogsStreamResponse) GetSeqNo added in v1.10.22

func (x *LogsStreamResponse) GetSeqNo() int64

func (*LogsStreamResponse) GetStreamId added in v1.10.22

func (x *LogsStreamResponse) GetStreamId() string

func (*LogsStreamResponse) ProtoMessage added in v1.10.22

func (*LogsStreamResponse) ProtoMessage()

func (*LogsStreamResponse) ProtoReflect added in v1.10.22

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

func (*LogsStreamResponse) Reset added in v1.10.22

func (x *LogsStreamResponse) Reset()

func (*LogsStreamResponse) String added in v1.10.22

func (x *LogsStreamResponse) String() string

type Opcode added in v1.7.21

type Opcode int32
const (
	Opcode_UNSPECFIED   Opcode = 0
	Opcode_TEXT_FRAME   Opcode = 1
	Opcode_BINARY_FRAME Opcode = 2
	Opcode_HEALTH_CHECK Opcode = 3
)

func (Opcode) Descriptor added in v1.7.21

func (Opcode) Descriptor() protoreflect.EnumDescriptor

func (Opcode) Enum added in v1.7.21

func (x Opcode) Enum() *Opcode

func (Opcode) EnumDescriptor deprecated added in v1.7.21

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

Deprecated: Use Opcode.Descriptor instead.

func (Opcode) Number added in v1.7.21

func (x Opcode) Number() protoreflect.EnumNumber

func (Opcode) String added in v1.7.21

func (x Opcode) String() string

func (Opcode) Type added in v1.7.21

func (Opcode) Type() protoreflect.EnumType

type TestKubeCloudAPIClient

type TestKubeCloudAPIClient interface {
	// Deprecated, use ExecuteAsync instead,
	// Will remove this after we fully migrate to ExecuteAsync.
	Execute(ctx context.Context, opts ...grpc.CallOption) (TestKubeCloudAPI_ExecuteClient, error)
	Send(ctx context.Context, opts ...grpc.CallOption) (TestKubeCloudAPI_SendClient, error)
	Call(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*CommandResponse, error)
	ExecuteAsync(ctx context.Context, opts ...grpc.CallOption) (TestKubeCloudAPI_ExecuteAsyncClient, error)
	GetLogsStream(ctx context.Context, opts ...grpc.CallOption) (TestKubeCloudAPI_GetLogsStreamClient, error)
}

TestKubeCloudAPIClient is the client API for TestKubeCloudAPI 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 TestKubeCloudAPIServer

type TestKubeCloudAPIServer interface {
	// Deprecated, use ExecuteAsync instead,
	// Will remove this after we fully migrate to ExecuteAsync.
	Execute(TestKubeCloudAPI_ExecuteServer) error
	Send(TestKubeCloudAPI_SendServer) error
	Call(context.Context, *CommandRequest) (*CommandResponse, error)
	ExecuteAsync(TestKubeCloudAPI_ExecuteAsyncServer) error
	GetLogsStream(TestKubeCloudAPI_GetLogsStreamServer) error
	// contains filtered or unexported methods
}

TestKubeCloudAPIServer is the server API for TestKubeCloudAPI service. All implementations must embed UnimplementedTestKubeCloudAPIServer for forward compatibility

type TestKubeCloudAPI_ExecuteAsyncClient added in v1.10.14

type TestKubeCloudAPI_ExecuteAsyncClient interface {
	Send(*ExecuteResponse) error
	Recv() (*ExecuteRequest, error)
	grpc.ClientStream
}

type TestKubeCloudAPI_ExecuteAsyncServer added in v1.10.14

type TestKubeCloudAPI_ExecuteAsyncServer interface {
	Send(*ExecuteRequest) error
	Recv() (*ExecuteResponse, error)
	grpc.ServerStream
}

type TestKubeCloudAPI_ExecuteClient

type TestKubeCloudAPI_ExecuteClient interface {
	Send(*ExecuteResponse) error
	Recv() (*ExecuteRequest, error)
	grpc.ClientStream
}

type TestKubeCloudAPI_ExecuteServer

type TestKubeCloudAPI_ExecuteServer interface {
	Send(*ExecuteRequest) error
	Recv() (*ExecuteResponse, error)
	grpc.ServerStream
}

type TestKubeCloudAPI_GetLogsStreamClient added in v1.10.22

type TestKubeCloudAPI_GetLogsStreamClient interface {
	Send(*LogsStreamResponse) error
	Recv() (*LogsStreamRequest, error)
	grpc.ClientStream
}

type TestKubeCloudAPI_GetLogsStreamServer added in v1.10.22

type TestKubeCloudAPI_GetLogsStreamServer interface {
	Send(*LogsStreamRequest) error
	Recv() (*LogsStreamResponse, error)
	grpc.ServerStream
}

type TestKubeCloudAPI_SendClient added in v1.7.21

type TestKubeCloudAPI_SendClient interface {
	Send(*WebsocketData) error
	CloseAndRecv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type TestKubeCloudAPI_SendServer added in v1.7.21

type TestKubeCloudAPI_SendServer interface {
	SendAndClose(*emptypb.Empty) error
	Recv() (*WebsocketData, error)
	grpc.ServerStream
}

type UnimplementedTestKubeCloudAPIServer

type UnimplementedTestKubeCloudAPIServer struct {
}

UnimplementedTestKubeCloudAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedTestKubeCloudAPIServer) Call added in v1.8.34

func (UnimplementedTestKubeCloudAPIServer) Execute

func (UnimplementedTestKubeCloudAPIServer) ExecuteAsync added in v1.10.14

func (UnimplementedTestKubeCloudAPIServer) GetLogsStream added in v1.10.22

func (UnimplementedTestKubeCloudAPIServer) Send added in v1.7.21

type UnsafeTestKubeCloudAPIServer

type UnsafeTestKubeCloudAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeTestKubeCloudAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestKubeCloudAPIServer will result in compilation errors.

type WebsocketData added in v1.7.21

type WebsocketData struct {
	Opcode Opcode `protobuf:"varint,1,opt,name=opcode,proto3,enum=cloud.Opcode" json:"opcode,omitempty"`
	Body   []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*WebsocketData) Descriptor deprecated added in v1.7.21

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

Deprecated: Use WebsocketData.ProtoReflect.Descriptor instead.

func (*WebsocketData) GetBody added in v1.7.21

func (x *WebsocketData) GetBody() []byte

func (*WebsocketData) GetOpcode added in v1.7.21

func (x *WebsocketData) GetOpcode() Opcode

func (*WebsocketData) ProtoMessage added in v1.7.21

func (*WebsocketData) ProtoMessage()

func (*WebsocketData) ProtoReflect added in v1.7.21

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

func (*WebsocketData) Reset added in v1.7.21

func (x *WebsocketData) Reset()

func (*WebsocketData) String added in v1.7.21

func (x *WebsocketData) String() string

Directories

Path Synopsis
data
executor
Package executor is a generated GoMock package.
Package executor is a generated GoMock package.

Jump to

Keyboard shortcuts

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