cloud

package
v1.9.17 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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,
		},
	},
	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"`
	// 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) 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"`
	// 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) 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 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 {
	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)
}

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 {
	Execute(TestKubeCloudAPI_ExecuteServer) error
	Send(TestKubeCloudAPI_SendServer) error
	Call(context.Context, *CommandRequest) (*CommandResponse, error)
	// contains filtered or unexported methods
}

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

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_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) 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