kernelv1

package
v0.6.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_runme_kernel_v1_kernel_proto protoreflect.FileDescriptor
View Source
var KernelService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "runme.kernel.v1.KernelService",
	HandlerType: (*KernelServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PostSession",
			Handler:    _KernelService_PostSession_Handler,
		},
		{
			MethodName: "DeleteSession",
			Handler:    _KernelService_DeleteSession_Handler,
		},
		{
			MethodName: "ListSessions",
			Handler:    _KernelService_ListSessions_Handler,
		},
		{
			MethodName: "Execute",
			Handler:    _KernelService_Execute_Handler,
		},
		{
			MethodName: "Input",
			Handler:    _KernelService_Input_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ExecuteStream",
			Handler:       _KernelService_ExecuteStream_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Output",
			Handler:       _KernelService_Output_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "IO",
			Handler:       _KernelService_IO_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "runme/kernel/v1/kernel.proto",
}

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

Functions

func RegisterKernelServiceServer

func RegisterKernelServiceServer(s grpc.ServiceRegistrar, srv KernelServiceServer)

Types

type DeleteSessionRequest

type DeleteSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSessionRequest) Descriptor deprecated

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

Deprecated: Use DeleteSessionRequest.ProtoReflect.Descriptor instead.

func (*DeleteSessionRequest) GetSessionId

func (x *DeleteSessionRequest) GetSessionId() string

func (*DeleteSessionRequest) ProtoMessage

func (*DeleteSessionRequest) ProtoMessage()

func (*DeleteSessionRequest) ProtoReflect

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

func (*DeleteSessionRequest) Reset

func (x *DeleteSessionRequest) Reset()

func (*DeleteSessionRequest) String

func (x *DeleteSessionRequest) String() string

type DeleteSessionResponse

type DeleteSessionResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteSessionResponse) Descriptor deprecated

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

Deprecated: Use DeleteSessionResponse.ProtoReflect.Descriptor instead.

func (*DeleteSessionResponse) ProtoMessage

func (*DeleteSessionResponse) ProtoMessage()

func (*DeleteSessionResponse) ProtoReflect

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

func (*DeleteSessionResponse) Reset

func (x *DeleteSessionResponse) Reset()

func (*DeleteSessionResponse) String

func (x *DeleteSessionResponse) String() string

type ExecuteRequest

type ExecuteRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Command   string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteRequest) Descriptor deprecated

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

Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead.

func (*ExecuteRequest) GetCommand

func (x *ExecuteRequest) GetCommand() string

func (*ExecuteRequest) GetSessionId

func (x *ExecuteRequest) GetSessionId() 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 {
	ExitCode *wrapperspb.UInt32Value `protobuf:"bytes,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	// data is the actual output from the command without
	// prompt, ANSI escape sequences, etc.
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteResponse) Descriptor deprecated

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

Deprecated: Use ExecuteResponse.ProtoReflect.Descriptor instead.

func (*ExecuteResponse) GetData

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

func (*ExecuteResponse) GetExitCode

func (x *ExecuteResponse) GetExitCode() *wrapperspb.UInt32Value

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 IORequest

type IORequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Data      []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*IORequest) Descriptor deprecated

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

Deprecated: Use IORequest.ProtoReflect.Descriptor instead.

func (*IORequest) GetData

func (x *IORequest) GetData() []byte

func (*IORequest) GetSessionId

func (x *IORequest) GetSessionId() string

func (*IORequest) ProtoMessage

func (*IORequest) ProtoMessage()

func (*IORequest) ProtoReflect

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

func (*IORequest) Reset

func (x *IORequest) Reset()

func (*IORequest) String

func (x *IORequest) String() string

type IOResponse

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

func (*IOResponse) Descriptor deprecated

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

Deprecated: Use IOResponse.ProtoReflect.Descriptor instead.

func (*IOResponse) GetData

func (x *IOResponse) GetData() []byte

func (*IOResponse) ProtoMessage

func (*IOResponse) ProtoMessage()

func (*IOResponse) ProtoReflect

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

func (*IOResponse) Reset

func (x *IOResponse) Reset()

func (*IOResponse) String

func (x *IOResponse) String() string

type InputRequest

type InputRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// data is the raw input. It might contain ANSI escape sequences and
	// other control characters.
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*InputRequest) Descriptor deprecated

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

Deprecated: Use InputRequest.ProtoReflect.Descriptor instead.

func (*InputRequest) GetData

func (x *InputRequest) GetData() []byte

func (*InputRequest) GetSessionId

func (x *InputRequest) GetSessionId() string

func (*InputRequest) ProtoMessage

func (*InputRequest) ProtoMessage()

func (*InputRequest) ProtoReflect

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

func (*InputRequest) Reset

func (x *InputRequest) Reset()

func (*InputRequest) String

func (x *InputRequest) String() string

type InputResponse

type InputResponse struct {
	// contains filtered or unexported fields
}

func (*InputResponse) Descriptor deprecated

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

Deprecated: Use InputResponse.ProtoReflect.Descriptor instead.

func (*InputResponse) ProtoMessage

func (*InputResponse) ProtoMessage()

func (*InputResponse) ProtoReflect

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

func (*InputResponse) Reset

func (x *InputResponse) Reset()

func (*InputResponse) String

func (x *InputResponse) String() string

type KernelServiceClient

KernelServiceClient is the client API for KernelService 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 KernelServiceServer

KernelServiceServer is the server API for KernelService service. All implementations must embed UnimplementedKernelServiceServer for forward compatibility

type KernelService_ExecuteStreamClient

type KernelService_ExecuteStreamClient interface {
	Recv() (*ExecuteResponse, error)
	grpc.ClientStream
}

type KernelService_ExecuteStreamServer

type KernelService_ExecuteStreamServer interface {
	Send(*ExecuteResponse) error
	grpc.ServerStream
}

type KernelService_IOClient

type KernelService_IOClient interface {
	Send(*IORequest) error
	Recv() (*IOResponse, error)
	grpc.ClientStream
}

type KernelService_IOServer

type KernelService_IOServer interface {
	Send(*IOResponse) error
	Recv() (*IORequest, error)
	grpc.ServerStream
}

type KernelService_OutputClient

type KernelService_OutputClient interface {
	Recv() (*OutputResponse, error)
	grpc.ClientStream
}

type KernelService_OutputServer

type KernelService_OutputServer interface {
	Send(*OutputResponse) error
	grpc.ServerStream
}

type ListSessionsRequest

type ListSessionsRequest struct {
	// contains filtered or unexported fields
}

func (*ListSessionsRequest) Descriptor deprecated

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

Deprecated: Use ListSessionsRequest.ProtoReflect.Descriptor instead.

func (*ListSessionsRequest) ProtoMessage

func (*ListSessionsRequest) ProtoMessage()

func (*ListSessionsRequest) ProtoReflect

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

func (*ListSessionsRequest) Reset

func (x *ListSessionsRequest) Reset()

func (*ListSessionsRequest) String

func (x *ListSessionsRequest) String() string

type ListSessionsResponse

type ListSessionsResponse struct {
	Sessions []*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSessionsResponse) Descriptor deprecated

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

Deprecated: Use ListSessionsResponse.ProtoReflect.Descriptor instead.

func (*ListSessionsResponse) GetSessions

func (x *ListSessionsResponse) GetSessions() []*Session

func (*ListSessionsResponse) ProtoMessage

func (*ListSessionsResponse) ProtoMessage()

func (*ListSessionsResponse) ProtoReflect

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

func (*ListSessionsResponse) Reset

func (x *ListSessionsResponse) Reset()

func (*ListSessionsResponse) String

func (x *ListSessionsResponse) String() string

type OutputRequest

type OutputRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*OutputRequest) Descriptor deprecated

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

Deprecated: Use OutputRequest.ProtoReflect.Descriptor instead.

func (*OutputRequest) GetSessionId

func (x *OutputRequest) GetSessionId() string

func (*OutputRequest) ProtoMessage

func (*OutputRequest) ProtoMessage()

func (*OutputRequest) ProtoReflect

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

func (*OutputRequest) Reset

func (x *OutputRequest) Reset()

func (*OutputRequest) String

func (x *OutputRequest) String() string

type OutputResponse

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

func (*OutputResponse) Descriptor deprecated

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

Deprecated: Use OutputResponse.ProtoReflect.Descriptor instead.

func (*OutputResponse) GetData

func (x *OutputResponse) GetData() []byte

func (*OutputResponse) ProtoMessage

func (*OutputResponse) ProtoMessage()

func (*OutputResponse) ProtoReflect

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

func (*OutputResponse) Reset

func (x *OutputResponse) Reset()

func (*OutputResponse) String

func (x *OutputResponse) String() string

type PostSessionRequest

type PostSessionRequest struct {
	Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	// prompt typically is used for debug purposes.
	// Leave it blank to have it auto-detected.
	Prompt string `protobuf:"bytes,2,opt,name=prompt,proto3" json:"prompt,omitempty"`
	// contains filtered or unexported fields
}

func (*PostSessionRequest) Descriptor deprecated

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

Deprecated: Use PostSessionRequest.ProtoReflect.Descriptor instead.

func (*PostSessionRequest) GetCommand

func (x *PostSessionRequest) GetCommand() string

func (*PostSessionRequest) GetPrompt

func (x *PostSessionRequest) GetPrompt() string

func (*PostSessionRequest) ProtoMessage

func (*PostSessionRequest) ProtoMessage()

func (*PostSessionRequest) ProtoReflect

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

func (*PostSessionRequest) Reset

func (x *PostSessionRequest) Reset()

func (*PostSessionRequest) String

func (x *PostSessionRequest) String() string

type PostSessionResponse

type PostSessionResponse struct {
	Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	// output contains data preceeding the first prompt.
	IntroData []byte `protobuf:"bytes,2,opt,name=intro_data,json=introData,proto3" json:"intro_data,omitempty"`
	// contains filtered or unexported fields
}

func (*PostSessionResponse) Descriptor deprecated

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

Deprecated: Use PostSessionResponse.ProtoReflect.Descriptor instead.

func (*PostSessionResponse) GetIntroData

func (x *PostSessionResponse) GetIntroData() []byte

func (*PostSessionResponse) GetSession

func (x *PostSessionResponse) GetSession() *Session

func (*PostSessionResponse) ProtoMessage

func (*PostSessionResponse) ProtoMessage()

func (*PostSessionResponse) ProtoReflect

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

func (*PostSessionResponse) Reset

func (x *PostSessionResponse) Reset()

func (*PostSessionResponse) String

func (x *PostSessionResponse) String() string

type Session

type Session struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetId

func (x *Session) GetId() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

type UnimplementedKernelServiceServer

type UnimplementedKernelServiceServer struct {
}

UnimplementedKernelServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedKernelServiceServer) DeleteSession

func (UnimplementedKernelServiceServer) Execute

func (UnimplementedKernelServiceServer) ExecuteStream

func (UnimplementedKernelServiceServer) IO

func (UnimplementedKernelServiceServer) Input

func (UnimplementedKernelServiceServer) ListSessions

func (UnimplementedKernelServiceServer) Output

func (UnimplementedKernelServiceServer) PostSession

type UnsafeKernelServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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