Documentation ¶
Index ¶
- Variables
- func RegisterKernelServiceServer(s grpc.ServiceRegistrar, srv KernelServiceServer)
- type DeleteSessionRequest
- func (*DeleteSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSessionRequest) GetSessionId() string
- func (*DeleteSessionRequest) ProtoMessage()
- func (x *DeleteSessionRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSessionRequest) Reset()
- func (x *DeleteSessionRequest) String() string
- type DeleteSessionResponse
- type ExecuteRequest
- func (*ExecuteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteRequest) GetCommand() string
- func (x *ExecuteRequest) GetSessionId() string
- func (*ExecuteRequest) ProtoMessage()
- func (x *ExecuteRequest) ProtoReflect() protoreflect.Message
- func (x *ExecuteRequest) Reset()
- func (x *ExecuteRequest) String() string
- type ExecuteResponse
- func (*ExecuteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteResponse) GetData() []byte
- func (x *ExecuteResponse) GetExitCode() *wrapperspb.UInt32Value
- func (*ExecuteResponse) ProtoMessage()
- func (x *ExecuteResponse) ProtoReflect() protoreflect.Message
- func (x *ExecuteResponse) Reset()
- func (x *ExecuteResponse) String() string
- type IORequest
- type IOResponse
- type InputRequest
- func (*InputRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InputRequest) GetData() []byte
- func (x *InputRequest) GetSessionId() string
- func (*InputRequest) ProtoMessage()
- func (x *InputRequest) ProtoReflect() protoreflect.Message
- func (x *InputRequest) Reset()
- func (x *InputRequest) String() string
- type InputResponse
- type KernelServiceClient
- type KernelServiceServer
- type KernelService_ExecuteStreamClient
- type KernelService_ExecuteStreamServer
- type KernelService_IOClient
- type KernelService_IOServer
- type KernelService_OutputClient
- type KernelService_OutputServer
- type ListSessionsRequest
- type ListSessionsResponse
- func (*ListSessionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSessionsResponse) GetSessions() []*Session
- func (*ListSessionsResponse) ProtoMessage()
- func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSessionsResponse) Reset()
- func (x *ListSessionsResponse) String() string
- type OutputRequest
- type OutputResponse
- type PostSessionRequest
- func (*PostSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PostSessionRequest) GetCommand() string
- func (x *PostSessionRequest) GetPrompt() string
- func (*PostSessionRequest) ProtoMessage()
- func (x *PostSessionRequest) ProtoReflect() protoreflect.Message
- func (x *PostSessionRequest) Reset()
- func (x *PostSessionRequest) String() string
- type PostSessionResponse
- func (*PostSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PostSessionResponse) GetIntroData() []byte
- func (x *PostSessionResponse) GetSession() *Session
- func (*PostSessionResponse) ProtoMessage()
- func (x *PostSessionResponse) ProtoReflect() protoreflect.Message
- func (x *PostSessionResponse) Reset()
- func (x *PostSessionResponse) String() string
- type Session
- type UnimplementedKernelServiceServer
- func (UnimplementedKernelServiceServer) DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionResponse, error)
- func (UnimplementedKernelServiceServer) Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)
- func (UnimplementedKernelServiceServer) ExecuteStream(*ExecuteRequest, KernelService_ExecuteStreamServer) error
- func (UnimplementedKernelServiceServer) IO(KernelService_IOServer) error
- func (UnimplementedKernelServiceServer) Input(context.Context, *InputRequest) (*InputResponse, error)
- func (UnimplementedKernelServiceServer) ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error)
- func (UnimplementedKernelServiceServer) Output(*OutputRequest, KernelService_OutputServer) error
- func (UnimplementedKernelServiceServer) PostSession(context.Context, *PostSessionRequest) (*PostSessionResponse, error)
- type UnsafeKernelServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_runme_kernel_v1_kernel_proto protoreflect.FileDescriptor
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) GetSessionId ¶
func (*IORequest) ProtoMessage ¶
func (*IORequest) ProtoMessage()
func (*IORequest) ProtoReflect ¶
func (x *IORequest) ProtoReflect() protoreflect.Message
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 ¶
type KernelServiceClient interface { PostSession(ctx context.Context, in *PostSessionRequest, opts ...grpc.CallOption) (*PostSessionResponse, error) DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*DeleteSessionResponse, error) ListSessions(ctx context.Context, in *ListSessionsRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error) Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) ExecuteStream(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (KernelService_ExecuteStreamClient, error) Input(ctx context.Context, in *InputRequest, opts ...grpc.CallOption) (*InputResponse, error) Output(ctx context.Context, in *OutputRequest, opts ...grpc.CallOption) (KernelService_OutputClient, error) IO(ctx context.Context, opts ...grpc.CallOption) (KernelService_IOClient, error) }
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.
func NewKernelServiceClient ¶
func NewKernelServiceClient(cc grpc.ClientConnInterface) KernelServiceClient
type KernelServiceServer ¶
type KernelServiceServer interface { PostSession(context.Context, *PostSessionRequest) (*PostSessionResponse, error) DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionResponse, error) ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error) Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error) ExecuteStream(*ExecuteRequest, KernelService_ExecuteStreamServer) error Input(context.Context, *InputRequest) (*InputResponse, error) Output(*OutputRequest, KernelService_OutputServer) error IO(KernelService_IOServer) error // contains filtered or unexported methods }
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) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type UnimplementedKernelServiceServer ¶
type UnimplementedKernelServiceServer struct { }
UnimplementedKernelServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedKernelServiceServer) DeleteSession ¶
func (UnimplementedKernelServiceServer) DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionResponse, error)
func (UnimplementedKernelServiceServer) Execute ¶
func (UnimplementedKernelServiceServer) Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)
func (UnimplementedKernelServiceServer) ExecuteStream ¶
func (UnimplementedKernelServiceServer) ExecuteStream(*ExecuteRequest, KernelService_ExecuteStreamServer) error
func (UnimplementedKernelServiceServer) Input ¶
func (UnimplementedKernelServiceServer) Input(context.Context, *InputRequest) (*InputResponse, error)
func (UnimplementedKernelServiceServer) ListSessions ¶
func (UnimplementedKernelServiceServer) ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error)
func (UnimplementedKernelServiceServer) Output ¶
func (UnimplementedKernelServiceServer) Output(*OutputRequest, KernelService_OutputServer) error
func (UnimplementedKernelServiceServer) PostSession ¶
func (UnimplementedKernelServiceServer) PostSession(context.Context, *PostSessionRequest) (*PostSessionResponse, error)
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.