Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterRecordingServiceServer(s grpc.ServiceRegistrar, srv RecordingServiceServer)
- func RegisterSessionServiceServer(s grpc.ServiceRegistrar, srv SessionServiceServer)
- type DataChunk
- func (*DataChunk) Descriptor() ([]byte, []int)deprecated
- func (x *DataChunk) GetData() []byte
- func (x *DataChunk) GetDirection() Direction
- func (x *DataChunk) GetDroppedBytes() uint64
- func (x *DataChunk) GetTimeOffsetMs() int64
- func (*DataChunk) ProtoMessage()
- func (x *DataChunk) ProtoReflect() protoreflect.Message
- func (x *DataChunk) Reset()
- func (x *DataChunk) String() string
- type Direction
- type EndRecordingSessionRequest
- func (*EndRecordingSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EndRecordingSessionRequest) GetConnectionId() string
- func (x *EndRecordingSessionRequest) GetEndTime() int64
- func (*EndRecordingSessionRequest) ProtoMessage()
- func (x *EndRecordingSessionRequest) ProtoReflect() protoreflect.Message
- func (x *EndRecordingSessionRequest) Reset()
- func (x *EndRecordingSessionRequest) String() string
- type EndSessionRequest
- func (*EndSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EndSessionRequest) GetBytesIn() int64
- func (x *EndSessionRequest) GetBytesOut() int64
- func (x *EndSessionRequest) GetEndTime() int64
- func (x *EndSessionRequest) GetSessionId() string
- func (*EndSessionRequest) ProtoMessage()
- func (x *EndSessionRequest) ProtoReflect() protoreflect.Message
- func (x *EndSessionRequest) Reset()
- func (x *EndSessionRequest) String() string
- type ExecRecordingFrame
- func (*ExecRecordingFrame) Descriptor() ([]byte, []int)deprecated
- func (x *ExecRecordingFrame) GetChunk() *DataChunk
- func (x *ExecRecordingFrame) GetHeader() *ExecRecordingHeader
- func (x *ExecRecordingFrame) GetPayload() isExecRecordingFrame_Payload
- func (*ExecRecordingFrame) ProtoMessage()
- func (x *ExecRecordingFrame) ProtoReflect() protoreflect.Message
- func (x *ExecRecordingFrame) Reset()
- func (x *ExecRecordingFrame) String() string
- type ExecRecordingFrame_Chunk
- type ExecRecordingFrame_Header
- type ExecRecordingHeader
- func (*ExecRecordingHeader) Descriptor() ([]byte, []int)deprecated
- func (x *ExecRecordingHeader) GetCommand() string
- func (x *ExecRecordingHeader) GetConnectionId() string
- func (x *ExecRecordingHeader) GetOptions() *RecordingOptions
- func (x *ExecRecordingHeader) GetSessionId() string
- func (x *ExecRecordingHeader) GetStartedAt() int64
- func (x *ExecRecordingHeader) GetUserToken() string
- func (*ExecRecordingHeader) ProtoMessage()
- func (x *ExecRecordingHeader) ProtoReflect() protoreflect.Message
- func (x *ExecRecordingHeader) Reset()
- func (x *ExecRecordingHeader) String() string
- type GetSessionRecordingRequest
- func (*GetSessionRecordingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSessionRecordingRequest) GetObligations() map[string]string
- func (x *GetSessionRecordingRequest) GetOffset() int64
- func (x *GetSessionRecordingRequest) GetRecordingId() string
- func (*GetSessionRecordingRequest) ProtoMessage()
- func (x *GetSessionRecordingRequest) ProtoReflect() protoreflect.Message
- func (x *GetSessionRecordingRequest) Reset()
- func (x *GetSessionRecordingRequest) String() string
- type GetSessionRecordingResponse
- func (*GetSessionRecordingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSessionRecordingResponse) GetChunk() []byte
- func (x *GetSessionRecordingResponse) GetMetadata() *RecordingMetadata
- func (x *GetSessionRecordingResponse) GetPayload() isGetSessionRecordingResponse_Payload
- func (*GetSessionRecordingResponse) ProtoMessage()
- func (x *GetSessionRecordingResponse) ProtoReflect() protoreflect.Message
- func (x *GetSessionRecordingResponse) Reset()
- func (x *GetSessionRecordingResponse) String() string
- type GetSessionRecordingResponse_Chunk
- type GetSessionRecordingResponse_Metadata
- type GetSessionsQuerySchemaRequest
- func (*GetSessionsQuerySchemaRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetSessionsQuerySchemaRequest) ProtoMessage()
- func (x *GetSessionsQuerySchemaRequest) ProtoReflect() protoreflect.Message
- func (x *GetSessionsQuerySchemaRequest) Reset()
- func (x *GetSessionsQuerySchemaRequest) String() string
- type GetSessionsRequest
- func (*GetSessionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSessionsRequest) GetLastN() int32
- func (x *GetSessionsRequest) GetLimit() int32
- func (x *GetSessionsRequest) GetOffset() int32
- func (x *GetSessionsRequest) GetOrg() string
- func (x *GetSessionsRequest) GetReverse() bool
- func (x *GetSessionsRequest) GetRoles() []string
- func (x *GetSessionsRequest) GetSessionId() string
- func (x *GetSessionsRequest) GetUsername() string
- func (x *GetSessionsRequest) GetWorkspace() string
- func (*GetSessionsRequest) ProtoMessage()
- func (x *GetSessionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetSessionsRequest) Reset()
- func (x *GetSessionsRequest) String() string
- type ListSessionRecordingsRequest
- func (*ListSessionRecordingsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSessionRecordingsRequest) GetLimit() int32
- func (x *ListSessionRecordingsRequest) GetObligations() map[string]string
- func (x *ListSessionRecordingsRequest) GetOffset() int32
- func (x *ListSessionRecordingsRequest) GetParentRecordingId() string
- func (x *ListSessionRecordingsRequest) GetSessionId() string
- func (x *ListSessionRecordingsRequest) GetType() RecordingType
- func (*ListSessionRecordingsRequest) ProtoMessage()
- func (x *ListSessionRecordingsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSessionRecordingsRequest) Reset()
- func (x *ListSessionRecordingsRequest) String() string
- type ListSessionRecordingsResponse
- func (*ListSessionRecordingsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSessionRecordingsResponse) GetRecordings() []*RecordingMetadata
- func (x *ListSessionRecordingsResponse) GetTotal() int32
- func (*ListSessionRecordingsResponse) ProtoMessage()
- func (x *ListSessionRecordingsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSessionRecordingsResponse) Reset()
- func (x *ListSessionRecordingsResponse) String() string
- type QuerySessionsRequest
- func (*QuerySessionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySessionsRequest) GetQuery() *v1.Payload
- func (*QuerySessionsRequest) ProtoMessage()
- func (x *QuerySessionsRequest) ProtoReflect() protoreflect.Message
- func (x *QuerySessionsRequest) Reset()
- func (x *QuerySessionsRequest) String() string
- type RecordingFormat
- func (RecordingFormat) Descriptor() protoreflect.EnumDescriptor
- func (x RecordingFormat) Enum() *RecordingFormat
- func (RecordingFormat) EnumDescriptor() ([]byte, []int)deprecated
- func (x RecordingFormat) Number() protoreflect.EnumNumber
- func (x RecordingFormat) String() string
- func (RecordingFormat) Type() protoreflect.EnumType
- type RecordingMetadata
- func (*RecordingMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *RecordingMetadata) GetChannelId() string
- func (x *RecordingMetadata) GetCommand() string
- func (x *RecordingMetadata) GetDstHost() string
- func (x *RecordingMetadata) GetDstPort() uint32
- func (x *RecordingMetadata) GetEndedAt() int64
- func (x *RecordingMetadata) GetFormat() RecordingFormat
- func (x *RecordingMetadata) GetGzip() bool
- func (x *RecordingMetadata) GetParentRecordingId() string
- func (x *RecordingMetadata) GetRecordingId() string
- func (x *RecordingMetadata) GetSessionId() string
- func (x *RecordingMetadata) GetSizeBytes() int64
- func (x *RecordingMetadata) GetStartedAt() int64
- func (x *RecordingMetadata) GetType() RecordingType
- func (x *RecordingMetadata) GetVscodeTerminal() *VscodeTerminalInfo
- func (*RecordingMetadata) ProtoMessage()
- func (x *RecordingMetadata) ProtoReflect() protoreflect.Message
- func (x *RecordingMetadata) Reset()
- func (x *RecordingMetadata) String() string
- type RecordingOptions
- func (*RecordingOptions) Descriptor() ([]byte, []int)deprecated
- func (x *RecordingOptions) GetFormat() RecordingFormat
- func (x *RecordingOptions) GetGzip() bool
- func (x *RecordingOptions) GetVscode() *VscodeRecordingOptions
- func (*RecordingOptions) ProtoMessage()
- func (x *RecordingOptions) ProtoReflect() protoreflect.Message
- func (x *RecordingOptions) Reset()
- func (x *RecordingOptions) String() string
- type RecordingRef
- func (*RecordingRef) Descriptor() ([]byte, []int)deprecated
- func (x *RecordingRef) GetParentRecordingId() string
- func (x *RecordingRef) GetRecordingId() string
- func (x *RecordingRef) GetType() RecordingType
- func (*RecordingRef) ProtoMessage()
- func (x *RecordingRef) ProtoReflect() protoreflect.Message
- func (x *RecordingRef) Reset()
- func (x *RecordingRef) String() string
- type RecordingServiceClient
- type RecordingServiceServer
- type RecordingService_StreamExecRecordingClient
- type RecordingService_StreamExecRecordingServer
- type RecordingService_StreamSftpRecordingClient
- type RecordingService_StreamSftpRecordingServer
- type RecordingService_StreamShellRecordingClient
- type RecordingService_StreamShellRecordingServer
- type RecordingService_StreamTcpipRecordingClient
- type RecordingService_StreamTcpipRecordingServer
- type RecordingType
- func (RecordingType) Descriptor() protoreflect.EnumDescriptor
- func (x RecordingType) Enum() *RecordingType
- func (RecordingType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RecordingType) Number() protoreflect.EnumNumber
- func (x RecordingType) String() string
- func (RecordingType) Type() protoreflect.EnumType
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetBlueprint() string
- func (x *Session) GetBytesIn() int64
- func (x *Session) GetBytesOut() int64
- func (x *Session) GetClient() string
- func (x *Session) GetClientIp() string
- func (x *Session) GetEndTime() int64
- func (x *Session) GetExecRecordings() int32
- func (x *Session) GetK8ShelldVer() string
- func (x *Session) GetOperations() []string
- func (x *Session) GetRecordings() []*RecordingRef
- func (x *Session) GetSessionId() string
- func (x *Session) GetStartTime() int64
- func (x *Session) GetUpdatedAt() int64
- func (x *Session) GetUsername() string
- func (x *Session) GetWorkspace() string
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type SessionServiceClient
- type SessionServiceServer
- type SessionService_GetSessionRecordingClient
- type SessionService_GetSessionRecordingServer
- type Sessions
- type SftpRecordingFrame
- func (*SftpRecordingFrame) Descriptor() ([]byte, []int)deprecated
- func (x *SftpRecordingFrame) GetChunk() *DataChunk
- func (x *SftpRecordingFrame) GetHeader() *SftpRecordingHeader
- func (x *SftpRecordingFrame) GetPayload() isSftpRecordingFrame_Payload
- func (*SftpRecordingFrame) ProtoMessage()
- func (x *SftpRecordingFrame) ProtoReflect() protoreflect.Message
- func (x *SftpRecordingFrame) Reset()
- func (x *SftpRecordingFrame) String() string
- type SftpRecordingFrame_Chunk
- type SftpRecordingFrame_Header
- type SftpRecordingHeader
- func (*SftpRecordingHeader) Descriptor() ([]byte, []int)deprecated
- func (x *SftpRecordingHeader) GetConnectionId() string
- func (x *SftpRecordingHeader) GetOptions() *RecordingOptions
- func (x *SftpRecordingHeader) GetSessionId() string
- func (x *SftpRecordingHeader) GetStartedAt() int64
- func (x *SftpRecordingHeader) GetUserToken() string
- func (*SftpRecordingHeader) ProtoMessage()
- func (x *SftpRecordingHeader) ProtoReflect() protoreflect.Message
- func (x *SftpRecordingHeader) Reset()
- func (x *SftpRecordingHeader) String() string
- type ShellRecordingFrame
- func (*ShellRecordingFrame) Descriptor() ([]byte, []int)deprecated
- func (x *ShellRecordingFrame) GetChunk() *DataChunk
- func (x *ShellRecordingFrame) GetHeader() *ShellRecordingHeader
- func (x *ShellRecordingFrame) GetPayload() isShellRecordingFrame_Payload
- func (x *ShellRecordingFrame) GetResize() *TerminalResize
- func (*ShellRecordingFrame) ProtoMessage()
- func (x *ShellRecordingFrame) ProtoReflect() protoreflect.Message
- func (x *ShellRecordingFrame) Reset()
- func (x *ShellRecordingFrame) String() string
- type ShellRecordingFrame_Chunk
- type ShellRecordingFrame_Header
- type ShellRecordingFrame_Resize
- type ShellRecordingHeader
- func (*ShellRecordingHeader) Descriptor() ([]byte, []int)deprecated
- func (x *ShellRecordingHeader) GetConnectionId() string
- func (x *ShellRecordingHeader) GetHeight() uint32
- func (x *ShellRecordingHeader) GetOptions() *RecordingOptions
- func (x *ShellRecordingHeader) GetSessionId() string
- func (x *ShellRecordingHeader) GetStartedAt() int64
- func (x *ShellRecordingHeader) GetUserToken() string
- func (x *ShellRecordingHeader) GetWidth() uint32
- func (*ShellRecordingHeader) ProtoMessage()
- func (x *ShellRecordingHeader) ProtoReflect() protoreflect.Message
- func (x *ShellRecordingHeader) Reset()
- func (x *ShellRecordingHeader) String() string
- type TcpipRecordingFrame
- func (*TcpipRecordingFrame) Descriptor() ([]byte, []int)deprecated
- func (x *TcpipRecordingFrame) GetChunk() *DataChunk
- func (x *TcpipRecordingFrame) GetHeader() *TcpipRecordingHeader
- func (x *TcpipRecordingFrame) GetPayload() isTcpipRecordingFrame_Payload
- func (*TcpipRecordingFrame) ProtoMessage()
- func (x *TcpipRecordingFrame) ProtoReflect() protoreflect.Message
- func (x *TcpipRecordingFrame) Reset()
- func (x *TcpipRecordingFrame) String() string
- type TcpipRecordingFrame_Chunk
- type TcpipRecordingFrame_Header
- type TcpipRecordingHeader
- func (*TcpipRecordingHeader) Descriptor() ([]byte, []int)deprecated
- func (x *TcpipRecordingHeader) GetConnectionId() string
- func (x *TcpipRecordingHeader) GetDstHost() string
- func (x *TcpipRecordingHeader) GetDstPort() uint32
- func (x *TcpipRecordingHeader) GetOptions() *RecordingOptions
- func (x *TcpipRecordingHeader) GetSessionId() string
- func (x *TcpipRecordingHeader) GetSrcHost() string
- func (x *TcpipRecordingHeader) GetSrcPort() uint32
- func (x *TcpipRecordingHeader) GetStartedAt() int64
- func (x *TcpipRecordingHeader) GetUserToken() string
- func (*TcpipRecordingHeader) ProtoMessage()
- func (x *TcpipRecordingHeader) ProtoReflect() protoreflect.Message
- func (x *TcpipRecordingHeader) Reset()
- func (x *TcpipRecordingHeader) String() string
- type TerminalResize
- func (*TerminalResize) Descriptor() ([]byte, []int)deprecated
- func (x *TerminalResize) GetHeight() uint32
- func (x *TerminalResize) GetTimeOffsetMs() int64
- func (x *TerminalResize) GetWidth() uint32
- func (*TerminalResize) ProtoMessage()
- func (x *TerminalResize) ProtoReflect() protoreflect.Message
- func (x *TerminalResize) Reset()
- func (x *TerminalResize) String() string
- type UnimplementedRecordingServiceServer
- func (UnimplementedRecordingServiceServer) EndRecordingSession(context.Context, *EndRecordingSessionRequest) (*empty.Empty, error)
- func (UnimplementedRecordingServiceServer) StreamExecRecording(grpc.ClientStreamingServer[ExecRecordingFrame, empty.Empty]) error
- func (UnimplementedRecordingServiceServer) StreamSftpRecording(grpc.ClientStreamingServer[SftpRecordingFrame, empty.Empty]) error
- func (UnimplementedRecordingServiceServer) StreamShellRecording(grpc.ClientStreamingServer[ShellRecordingFrame, empty.Empty]) error
- func (UnimplementedRecordingServiceServer) StreamTcpipRecording(grpc.ClientStreamingServer[TcpipRecordingFrame, empty.Empty]) error
- type UnimplementedSessionServiceServer
- func (UnimplementedSessionServiceServer) EndSession(context.Context, *EndSessionRequest) (*empty.Empty, error)
- func (UnimplementedSessionServiceServer) GetSessionRecording(*GetSessionRecordingRequest, ...) error
- func (UnimplementedSessionServiceServer) GetSessions(context.Context, *GetSessionsRequest) (*Sessions, error)
- func (UnimplementedSessionServiceServer) GetSessionsQuerySchema(context.Context, *GetSessionsQuerySchemaRequest) (*v1.Descriptor, error)
- func (UnimplementedSessionServiceServer) GetVersionInfo(context.Context, *v11.GetVersionInfoRequest) (*v11.GetVersionInfoResponse, error)
- func (UnimplementedSessionServiceServer) ListSessionRecordings(context.Context, *ListSessionRecordingsRequest) (*ListSessionRecordingsResponse, error)
- func (UnimplementedSessionServiceServer) QuerySessions(context.Context, *QuerySessionsRequest) (*Sessions, error)
- func (UnimplementedSessionServiceServer) UpsertSession(context.Context, *UpsertSessionRequest) (*UpsertSessionResponse, error)
- type UnsafeRecordingServiceServer
- type UnsafeSessionServiceServer
- type UpsertSessionRequest
- func (*UpsertSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertSessionRequest) GetSession() *Session
- func (*UpsertSessionRequest) ProtoMessage()
- func (x *UpsertSessionRequest) ProtoReflect() protoreflect.Message
- func (x *UpsertSessionRequest) Reset()
- func (x *UpsertSessionRequest) String() string
- type UpsertSessionResponse
- func (*UpsertSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertSessionResponse) GetSession() *Session
- func (*UpsertSessionResponse) ProtoMessage()
- func (x *UpsertSessionResponse) ProtoReflect() protoreflect.Message
- func (x *UpsertSessionResponse) Reset()
- func (x *UpsertSessionResponse) String() string
- type VscodeRecordingOptions
- func (*VscodeRecordingOptions) Descriptor() ([]byte, []int)deprecated
- func (x *VscodeRecordingOptions) GetRecordInput() bool
- func (x *VscodeRecordingOptions) GetTerminals() bool
- func (*VscodeRecordingOptions) ProtoMessage()
- func (x *VscodeRecordingOptions) ProtoReflect() protoreflect.Message
- func (x *VscodeRecordingOptions) Reset()
- func (x *VscodeRecordingOptions) String() string
- type VscodeTerminalInfo
- func (*VscodeTerminalInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VscodeTerminalInfo) GetExitCode() int32
- func (x *VscodeTerminalInfo) GetShell() string
- func (x *VscodeTerminalInfo) GetTerminalId() uint32
- func (x *VscodeTerminalInfo) GetTitle() string
- func (x *VscodeTerminalInfo) GetVscodeCommit() string
- func (*VscodeTerminalInfo) ProtoMessage()
- func (x *VscodeTerminalInfo) ProtoReflect() protoreflect.Message
- func (x *VscodeTerminalInfo) Reset()
- func (x *VscodeTerminalInfo) String() string
Constants ¶
const ( SessionService_GetSessions_FullMethodName = "/session.v1.SessionService/GetSessions" SessionService_GetSessionsQuerySchema_FullMethodName = "/session.v1.SessionService/GetSessionsQuerySchema" SessionService_QuerySessions_FullMethodName = "/session.v1.SessionService/QuerySessions" SessionService_UpsertSession_FullMethodName = "/session.v1.SessionService/UpsertSession" SessionService_EndSession_FullMethodName = "/session.v1.SessionService/EndSession" SessionService_GetVersionInfo_FullMethodName = "/session.v1.SessionService/GetVersionInfo" SessionService_ListSessionRecordings_FullMethodName = "/session.v1.SessionService/ListSessionRecordings" SessionService_GetSessionRecording_FullMethodName = "/session.v1.SessionService/GetSessionRecording" )
const ( RecordingService_StreamShellRecording_FullMethodName = "/session.v1.RecordingService/StreamShellRecording" RecordingService_StreamExecRecording_FullMethodName = "/session.v1.RecordingService/StreamExecRecording" RecordingService_StreamTcpipRecording_FullMethodName = "/session.v1.RecordingService/StreamTcpipRecording" RecordingService_StreamSftpRecording_FullMethodName = "/session.v1.RecordingService/StreamSftpRecording" RecordingService_EndRecordingSession_FullMethodName = "/session.v1.RecordingService/EndRecordingSession" )
Variables ¶
var ( RecordingType_name = map[int32]string{ 0: "RECORDING_TYPE_UNSPECIFIED", 1: "RECORDING_TYPE_SHELL", 2: "RECORDING_TYPE_EXEC", 3: "RECORDING_TYPE_TCPIP", 4: "RECORDING_TYPE_SFTP", 5: "RECORDING_TYPE_VSCODE_TERMINAL", } RecordingType_value = map[string]int32{ "RECORDING_TYPE_UNSPECIFIED": 0, "RECORDING_TYPE_SHELL": 1, "RECORDING_TYPE_EXEC": 2, "RECORDING_TYPE_TCPIP": 3, "RECORDING_TYPE_SFTP": 4, "RECORDING_TYPE_VSCODE_TERMINAL": 5, } )
Enum value maps for RecordingType.
var ( RecordingFormat_name = map[int32]string{ 0: "RECORDING_FORMAT_UNSPECIFIED", 1: "RECORDING_FORMAT_ASCIINEMA", 2: "RECORDING_FORMAT_PCAPNG", 3: "RECORDING_FORMAT_NONE", } RecordingFormat_value = map[string]int32{ "RECORDING_FORMAT_UNSPECIFIED": 0, "RECORDING_FORMAT_ASCIINEMA": 1, "RECORDING_FORMAT_PCAPNG": 2, "RECORDING_FORMAT_NONE": 3, } )
Enum value maps for RecordingFormat.
var ( Direction_name = map[int32]string{ 0: "DIRECTION_OUTPUT", 1: "DIRECTION_INPUT", } Direction_value = map[string]int32{ "DIRECTION_OUTPUT": 0, "DIRECTION_INPUT": 1, } )
Enum value maps for Direction.
var File_session_v1_session_proto protoreflect.FileDescriptor
var RecordingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "session.v1.RecordingService", HandlerType: (*RecordingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EndRecordingSession", Handler: _RecordingService_EndRecordingSession_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StreamShellRecording", Handler: _RecordingService_StreamShellRecording_Handler, ClientStreams: true, }, { StreamName: "StreamExecRecording", Handler: _RecordingService_StreamExecRecording_Handler, ClientStreams: true, }, { StreamName: "StreamTcpipRecording", Handler: _RecordingService_StreamTcpipRecording_Handler, ClientStreams: true, }, { StreamName: "StreamSftpRecording", Handler: _RecordingService_StreamSftpRecording_Handler, ClientStreams: true, }, }, Metadata: "session/v1/session.proto", }
RecordingService_ServiceDesc is the grpc.ServiceDesc for RecordingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var SessionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "session.v1.SessionService", HandlerType: (*SessionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSessions", Handler: _SessionService_GetSessions_Handler, }, { MethodName: "GetSessionsQuerySchema", Handler: _SessionService_GetSessionsQuerySchema_Handler, }, { MethodName: "QuerySessions", Handler: _SessionService_QuerySessions_Handler, }, { MethodName: "UpsertSession", Handler: _SessionService_UpsertSession_Handler, }, { MethodName: "EndSession", Handler: _SessionService_EndSession_Handler, }, { MethodName: "GetVersionInfo", Handler: _SessionService_GetVersionInfo_Handler, }, { MethodName: "ListSessionRecordings", Handler: _SessionService_ListSessionRecordings_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetSessionRecording", Handler: _SessionService_GetSessionRecording_Handler, ServerStreams: true, }, }, Metadata: "session/v1/session.proto", }
SessionService_ServiceDesc is the grpc.ServiceDesc for SessionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRecordingServiceServer ¶
func RegisterRecordingServiceServer(s grpc.ServiceRegistrar, srv RecordingServiceServer)
func RegisterSessionServiceServer ¶
func RegisterSessionServiceServer(s grpc.ServiceRegistrar, srv SessionServiceServer)
Types ¶
type DataChunk ¶
type DataChunk struct {
// time_offset_ms is the number of milliseconds elapsed since the recording started_at.
TimeOffsetMs int64 `protobuf:"varint,1,opt,name=time_offset_ms,json=timeOffsetMs,proto3" json:"time_offset_ms,omitempty"`
// data is the raw bytes transferred on the channel.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// direction indicates which side produced this data.
Direction Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=session.v1.Direction" json:"direction,omitempty"`
// dropped_bytes is the number of bytes in this direction that the
// recording client dropped immediately before this chunk because its send
// buffer was full. A chunk may carry only dropped_bytes and no data, to
// report a gap at the end of the stream.
DroppedBytes uint64 `protobuf:"varint,4,opt,name=dropped_bytes,json=droppedBytes,proto3" json:"dropped_bytes,omitempty"`
// contains filtered or unexported fields
}
DataChunk carries a block of raw channel data with timing information.
func (*DataChunk) Descriptor
deprecated
func (*DataChunk) GetDirection ¶
func (*DataChunk) GetDroppedBytes ¶ added in v0.62.6
func (*DataChunk) GetTimeOffsetMs ¶
func (*DataChunk) ProtoMessage ¶
func (*DataChunk) ProtoMessage()
func (*DataChunk) ProtoReflect ¶
func (x *DataChunk) ProtoReflect() protoreflect.Message
type Direction ¶
type Direction int32
Direction indicates which side of the channel produced the data.
const ( // DIRECTION_OUTPUT is data flowing from the workspace to the client // (server stdout / terminal output). Direction_DIRECTION_OUTPUT Direction = 0 // DIRECTION_INPUT is data flowing from the client to the workspace. // Only recorded when explicitly enabled. Direction_DIRECTION_INPUT Direction = 1 )
func (Direction) Descriptor ¶
func (Direction) Descriptor() protoreflect.EnumDescriptor
func (Direction) EnumDescriptor
deprecated
func (Direction) Number ¶
func (x Direction) Number() protoreflect.EnumNumber
func (Direction) Type ¶
func (Direction) Type() protoreflect.EnumType
type EndRecordingSessionRequest ¶
type EndRecordingSessionRequest struct {
// connection_id identifies the SSH connection whose recording resources should
// be cleaned up.
ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// end_time is the session end time as a Unix timestamp (seconds), used to
// finalise any open recording metadata.
EndTime int64 `protobuf:"varint,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// contains filtered or unexported fields
}
EndRecordingSessionRequest signals the recording backend to flush and release all resources associated with a connection.
func (*EndRecordingSessionRequest) Descriptor
deprecated
func (*EndRecordingSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use EndRecordingSessionRequest.ProtoReflect.Descriptor instead.
func (*EndRecordingSessionRequest) GetConnectionId ¶
func (x *EndRecordingSessionRequest) GetConnectionId() string
func (*EndRecordingSessionRequest) GetEndTime ¶
func (x *EndRecordingSessionRequest) GetEndTime() int64
func (*EndRecordingSessionRequest) ProtoMessage ¶
func (*EndRecordingSessionRequest) ProtoMessage()
func (*EndRecordingSessionRequest) ProtoReflect ¶
func (x *EndRecordingSessionRequest) ProtoReflect() protoreflect.Message
func (*EndRecordingSessionRequest) Reset ¶
func (x *EndRecordingSessionRequest) Reset()
func (*EndRecordingSessionRequest) String ¶
func (x *EndRecordingSessionRequest) String() string
type EndSessionRequest ¶
type EndSessionRequest struct {
// session_id identifies the session to end.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// end_time is the session end time as a Unix timestamp (seconds).
EndTime int64 `protobuf:"varint,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// bytes_in is the final total bytes received from the client.
BytesIn int64 `protobuf:"varint,3,opt,name=bytes_in,json=bytesIn,proto3" json:"bytes_in,omitempty"`
// bytes_out is the final total bytes sent to the client.
BytesOut int64 `protobuf:"varint,4,opt,name=bytes_out,json=bytesOut,proto3" json:"bytes_out,omitempty"`
// contains filtered or unexported fields
}
EndSessionRequest closes an active session and records its final stats.
func (*EndSessionRequest) Descriptor
deprecated
func (*EndSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use EndSessionRequest.ProtoReflect.Descriptor instead.
func (*EndSessionRequest) GetBytesIn ¶
func (x *EndSessionRequest) GetBytesIn() int64
func (*EndSessionRequest) GetBytesOut ¶
func (x *EndSessionRequest) GetBytesOut() int64
func (*EndSessionRequest) GetEndTime ¶
func (x *EndSessionRequest) GetEndTime() int64
func (*EndSessionRequest) GetSessionId ¶
func (x *EndSessionRequest) GetSessionId() string
func (*EndSessionRequest) ProtoMessage ¶
func (*EndSessionRequest) ProtoMessage()
func (*EndSessionRequest) ProtoReflect ¶
func (x *EndSessionRequest) ProtoReflect() protoreflect.Message
func (*EndSessionRequest) Reset ¶
func (x *EndSessionRequest) Reset()
func (*EndSessionRequest) String ¶
func (x *EndSessionRequest) String() string
type ExecRecordingFrame ¶
type ExecRecordingFrame struct {
// Types that are valid to be assigned to Payload:
//
// *ExecRecordingFrame_Header
// *ExecRecordingFrame_Chunk
Payload isExecRecordingFrame_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
ExecRecordingFrame is a single unit in an exec recording stream.
func (*ExecRecordingFrame) Descriptor
deprecated
func (*ExecRecordingFrame) Descriptor() ([]byte, []int)
Deprecated: Use ExecRecordingFrame.ProtoReflect.Descriptor instead.
func (*ExecRecordingFrame) GetChunk ¶
func (x *ExecRecordingFrame) GetChunk() *DataChunk
func (*ExecRecordingFrame) GetHeader ¶
func (x *ExecRecordingFrame) GetHeader() *ExecRecordingHeader
func (*ExecRecordingFrame) GetPayload ¶
func (x *ExecRecordingFrame) GetPayload() isExecRecordingFrame_Payload
func (*ExecRecordingFrame) ProtoMessage ¶
func (*ExecRecordingFrame) ProtoMessage()
func (*ExecRecordingFrame) ProtoReflect ¶
func (x *ExecRecordingFrame) ProtoReflect() protoreflect.Message
func (*ExecRecordingFrame) Reset ¶
func (x *ExecRecordingFrame) Reset()
func (*ExecRecordingFrame) String ¶
func (x *ExecRecordingFrame) String() string
type ExecRecordingFrame_Chunk ¶
type ExecRecordingFrame_Chunk struct {
// chunk carries a block of raw stdout/stderr data.
Chunk *DataChunk `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}
type ExecRecordingFrame_Header ¶
type ExecRecordingFrame_Header struct {
// header is the first frame and carries exec session metadata.
Header *ExecRecordingHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"`
}
type ExecRecordingHeader ¶
type ExecRecordingHeader struct {
// session_id is the channel ID: the per-channel identifier the recording
// client passed to k8shelld (for example "sh-<connId>3" from ssh-proxy).
// It equals connection_id when the session has a single channel, as for an
// api-server webshell. Required.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// user_token is the token of the user owning the session being recorded.
UserToken string `protobuf:"bytes,2,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"`
// started_at is the channel start time as a Unix timestamp (seconds).
StartedAt int64 `protobuf:"varint,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
// command is the command that was executed.
Command string `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"`
// connection_id is the SessionService session ID: the same value the
// recording client sends as SessionId to UpsertSession and EndSession
// (one per SSH connection or webshell session). Required.
ConnectionId string `protobuf:"bytes,5,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// options is the recording setup for this stream. Unset uses the
// service defaults.
Options *RecordingOptions `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
ExecRecordingHeader is the mandatory first frame of an exec recording stream.
func (*ExecRecordingHeader) Descriptor
deprecated
func (*ExecRecordingHeader) Descriptor() ([]byte, []int)
Deprecated: Use ExecRecordingHeader.ProtoReflect.Descriptor instead.
func (*ExecRecordingHeader) GetCommand ¶
func (x *ExecRecordingHeader) GetCommand() string
func (*ExecRecordingHeader) GetConnectionId ¶
func (x *ExecRecordingHeader) GetConnectionId() string
func (*ExecRecordingHeader) GetOptions ¶ added in v0.62.6
func (x *ExecRecordingHeader) GetOptions() *RecordingOptions
func (*ExecRecordingHeader) GetSessionId ¶
func (x *ExecRecordingHeader) GetSessionId() string
func (*ExecRecordingHeader) GetStartedAt ¶
func (x *ExecRecordingHeader) GetStartedAt() int64
func (*ExecRecordingHeader) GetUserToken ¶
func (x *ExecRecordingHeader) GetUserToken() string
func (*ExecRecordingHeader) ProtoMessage ¶
func (*ExecRecordingHeader) ProtoMessage()
func (*ExecRecordingHeader) ProtoReflect ¶
func (x *ExecRecordingHeader) ProtoReflect() protoreflect.Message
func (*ExecRecordingHeader) Reset ¶
func (x *ExecRecordingHeader) Reset()
func (*ExecRecordingHeader) String ¶
func (x *ExecRecordingHeader) String() string
type GetSessionRecordingRequest ¶ added in v0.62.5
type GetSessionRecordingRequest struct {
// recording_id identifies the recording.
RecordingId string `protobuf:"bytes,1,opt,name=recording_id,json=recordingId,proto3" json:"recording_id,omitempty"`
// offset is the byte offset to start from, for resuming a download.
Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
// obligations carries the authz obligations; see ListSessionRecordingsRequest.
Obligations map[string]string `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
GetSessionRecordingRequest selects one recording to download.
func (*GetSessionRecordingRequest) Descriptor
deprecated
added in
v0.62.5
func (*GetSessionRecordingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionRecordingRequest.ProtoReflect.Descriptor instead.
func (*GetSessionRecordingRequest) GetObligations ¶ added in v0.62.5
func (x *GetSessionRecordingRequest) GetObligations() map[string]string
func (*GetSessionRecordingRequest) GetOffset ¶ added in v0.62.5
func (x *GetSessionRecordingRequest) GetOffset() int64
func (*GetSessionRecordingRequest) GetRecordingId ¶ added in v0.62.5
func (x *GetSessionRecordingRequest) GetRecordingId() string
func (*GetSessionRecordingRequest) ProtoMessage ¶ added in v0.62.5
func (*GetSessionRecordingRequest) ProtoMessage()
func (*GetSessionRecordingRequest) ProtoReflect ¶ added in v0.62.5
func (x *GetSessionRecordingRequest) ProtoReflect() protoreflect.Message
func (*GetSessionRecordingRequest) Reset ¶ added in v0.62.5
func (x *GetSessionRecordingRequest) Reset()
func (*GetSessionRecordingRequest) String ¶ added in v0.62.5
func (x *GetSessionRecordingRequest) String() string
type GetSessionRecordingResponse ¶ added in v0.62.5
type GetSessionRecordingResponse struct {
// Types that are valid to be assigned to Payload:
//
// *GetSessionRecordingResponse_Metadata
// *GetSessionRecordingResponse_Chunk
Payload isGetSessionRecordingResponse_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
GetSessionRecordingResponse is one message of a recording download stream.
func (*GetSessionRecordingResponse) Descriptor
deprecated
added in
v0.62.5
func (*GetSessionRecordingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionRecordingResponse.ProtoReflect.Descriptor instead.
func (*GetSessionRecordingResponse) GetChunk ¶ added in v0.62.5
func (x *GetSessionRecordingResponse) GetChunk() []byte
func (*GetSessionRecordingResponse) GetMetadata ¶ added in v0.62.5
func (x *GetSessionRecordingResponse) GetMetadata() *RecordingMetadata
func (*GetSessionRecordingResponse) GetPayload ¶ added in v0.62.5
func (x *GetSessionRecordingResponse) GetPayload() isGetSessionRecordingResponse_Payload
func (*GetSessionRecordingResponse) ProtoMessage ¶ added in v0.62.5
func (*GetSessionRecordingResponse) ProtoMessage()
func (*GetSessionRecordingResponse) ProtoReflect ¶ added in v0.62.5
func (x *GetSessionRecordingResponse) ProtoReflect() protoreflect.Message
func (*GetSessionRecordingResponse) Reset ¶ added in v0.62.5
func (x *GetSessionRecordingResponse) Reset()
func (*GetSessionRecordingResponse) String ¶ added in v0.62.5
func (x *GetSessionRecordingResponse) String() string
type GetSessionRecordingResponse_Chunk ¶ added in v0.62.5
type GetSessionRecordingResponse_Chunk struct {
// chunk is a block of the stored file, at most 1 MiB.
Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}
type GetSessionRecordingResponse_Metadata ¶ added in v0.62.5
type GetSessionRecordingResponse_Metadata struct {
// metadata is always the first message.
Metadata *RecordingMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
}
type GetSessionsQuerySchemaRequest ¶ added in v0.35.0
type GetSessionsQuerySchemaRequest struct {
// contains filtered or unexported fields
}
GetSessionsQuerySchemaRequest requests the query.v1.Descriptor for the sessions resource. It carries no fields today; left as a message rather than google.protobuf.Empty so parameters can be added later without changing the RPC signature.
func (*GetSessionsQuerySchemaRequest) Descriptor
deprecated
added in
v0.35.0
func (*GetSessionsQuerySchemaRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionsQuerySchemaRequest.ProtoReflect.Descriptor instead.
func (*GetSessionsQuerySchemaRequest) ProtoMessage ¶ added in v0.35.0
func (*GetSessionsQuerySchemaRequest) ProtoMessage()
func (*GetSessionsQuerySchemaRequest) ProtoReflect ¶ added in v0.35.0
func (x *GetSessionsQuerySchemaRequest) ProtoReflect() protoreflect.Message
func (*GetSessionsQuerySchemaRequest) Reset ¶ added in v0.35.0
func (x *GetSessionsQuerySchemaRequest) Reset()
func (*GetSessionsQuerySchemaRequest) String ¶ added in v0.35.0
func (x *GetSessionsQuerySchemaRequest) String() string
type GetSessionsRequest ¶
type GetSessionsRequest struct {
// session_id filters by exact session identifier.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// username filters by the owning user.
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// workspace filters by the workspace name.
Workspace string `protobuf:"bytes,3,opt,name=workspace,proto3" json:"workspace,omitempty"`
// limit caps the number of returned sessions. 0 means no limit.
Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
// offset skips the first N results for pagination.
Offset int32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
// reverse returns results in reverse chronological order when true.
Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"`
// roles filters to sessions owned by a user with at least one of these
// roles. Empty means unrestricted.
Roles []string `protobuf:"bytes,7,rep,name=roles,proto3" json:"roles,omitempty"`
// org filters to sessions owned by a user in this organization. Empty
// means unrestricted.
Org string `protobuf:"bytes,8,opt,name=org,proto3" json:"org,omitempty"`
// last_n restricts the result to the N most recently created sessions.
// 0 means no restriction.
LastN int32 `protobuf:"varint,9,opt,name=last_n,json=lastN,proto3" json:"last_n,omitempty"`
// contains filtered or unexported fields
}
GetSessionsRequest filters the list of sessions to return. All fields are optional; omitting a field disables that filter.
func (*GetSessionsRequest) Descriptor
deprecated
func (*GetSessionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionsRequest.ProtoReflect.Descriptor instead.
func (*GetSessionsRequest) GetLastN ¶ added in v0.30.13
func (x *GetSessionsRequest) GetLastN() int32
func (*GetSessionsRequest) GetLimit ¶
func (x *GetSessionsRequest) GetLimit() int32
func (*GetSessionsRequest) GetOffset ¶
func (x *GetSessionsRequest) GetOffset() int32
func (*GetSessionsRequest) GetOrg ¶ added in v0.30.12
func (x *GetSessionsRequest) GetOrg() string
func (*GetSessionsRequest) GetReverse ¶
func (x *GetSessionsRequest) GetReverse() bool
func (*GetSessionsRequest) GetRoles ¶ added in v0.30.12
func (x *GetSessionsRequest) GetRoles() []string
func (*GetSessionsRequest) GetSessionId ¶
func (x *GetSessionsRequest) GetSessionId() string
func (*GetSessionsRequest) GetUsername ¶
func (x *GetSessionsRequest) GetUsername() string
func (*GetSessionsRequest) GetWorkspace ¶
func (x *GetSessionsRequest) GetWorkspace() string
func (*GetSessionsRequest) ProtoMessage ¶
func (*GetSessionsRequest) ProtoMessage()
func (*GetSessionsRequest) ProtoReflect ¶
func (x *GetSessionsRequest) ProtoReflect() protoreflect.Message
func (*GetSessionsRequest) Reset ¶
func (x *GetSessionsRequest) Reset()
func (*GetSessionsRequest) String ¶
func (x *GetSessionsRequest) String() string
type ListSessionRecordingsRequest ¶ added in v0.62.5
type ListSessionRecordingsRequest struct {
// session_id is the SessionService session ID.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// obligations carries the authz obligations from the gateway's policy
// evaluation (keys "roles", "org", "username", as for session:list) and is
// enforced as a mandatory scope. Never accepted from end clients.
Obligations map[string]string `` /* 149-byte string literal not displayed */
// type restricts the result to recordings of this type. Unspecified means
// all types.
Type RecordingType `protobuf:"varint,3,opt,name=type,proto3,enum=session.v1.RecordingType" json:"type,omitempty"`
// limit is the maximum number of recordings to return. 0 selects the
// server default; larger values are capped.
Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
// offset is the number of matching recordings to skip.
Offset int32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
// parent_recording_id restricts the result to recordings derived from
// this recording (for example the VS Code terminals of a pcap-ng
// recording). Empty means no restriction.
ParentRecordingId string `protobuf:"bytes,6,opt,name=parent_recording_id,json=parentRecordingId,proto3" json:"parent_recording_id,omitempty"`
// contains filtered or unexported fields
}
ListSessionRecordingsRequest selects the session whose recordings to list.
func (*ListSessionRecordingsRequest) Descriptor
deprecated
added in
v0.62.5
func (*ListSessionRecordingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSessionRecordingsRequest.ProtoReflect.Descriptor instead.
func (*ListSessionRecordingsRequest) GetLimit ¶ added in v0.62.5
func (x *ListSessionRecordingsRequest) GetLimit() int32
func (*ListSessionRecordingsRequest) GetObligations ¶ added in v0.62.5
func (x *ListSessionRecordingsRequest) GetObligations() map[string]string
func (*ListSessionRecordingsRequest) GetOffset ¶ added in v0.62.5
func (x *ListSessionRecordingsRequest) GetOffset() int32
func (*ListSessionRecordingsRequest) GetParentRecordingId ¶ added in v0.62.6
func (x *ListSessionRecordingsRequest) GetParentRecordingId() string
func (*ListSessionRecordingsRequest) GetSessionId ¶ added in v0.62.5
func (x *ListSessionRecordingsRequest) GetSessionId() string
func (*ListSessionRecordingsRequest) GetType ¶ added in v0.62.5
func (x *ListSessionRecordingsRequest) GetType() RecordingType
func (*ListSessionRecordingsRequest) ProtoMessage ¶ added in v0.62.5
func (*ListSessionRecordingsRequest) ProtoMessage()
func (*ListSessionRecordingsRequest) ProtoReflect ¶ added in v0.62.5
func (x *ListSessionRecordingsRequest) ProtoReflect() protoreflect.Message
func (*ListSessionRecordingsRequest) Reset ¶ added in v0.62.5
func (x *ListSessionRecordingsRequest) Reset()
func (*ListSessionRecordingsRequest) String ¶ added in v0.62.5
func (x *ListSessionRecordingsRequest) String() string
type ListSessionRecordingsResponse ¶ added in v0.62.5
type ListSessionRecordingsResponse struct {
Recordings []*RecordingMetadata `protobuf:"bytes,1,rep,name=recordings,proto3" json:"recordings,omitempty"`
// total is the number of recordings matching the request's session and
// type, regardless of limit and offset.
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
ListSessionRecordingsResponse lists a session's recordings by start time.
func (*ListSessionRecordingsResponse) Descriptor
deprecated
added in
v0.62.5
func (*ListSessionRecordingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSessionRecordingsResponse.ProtoReflect.Descriptor instead.
func (*ListSessionRecordingsResponse) GetRecordings ¶ added in v0.62.5
func (x *ListSessionRecordingsResponse) GetRecordings() []*RecordingMetadata
func (*ListSessionRecordingsResponse) GetTotal ¶ added in v0.62.5
func (x *ListSessionRecordingsResponse) GetTotal() int32
func (*ListSessionRecordingsResponse) ProtoMessage ¶ added in v0.62.5
func (*ListSessionRecordingsResponse) ProtoMessage()
func (*ListSessionRecordingsResponse) ProtoReflect ¶ added in v0.62.5
func (x *ListSessionRecordingsResponse) ProtoReflect() protoreflect.Message
func (*ListSessionRecordingsResponse) Reset ¶ added in v0.62.5
func (x *ListSessionRecordingsResponse) Reset()
func (*ListSessionRecordingsResponse) String ¶ added in v0.62.5
func (x *ListSessionRecordingsResponse) String() string
type QuerySessionsRequest ¶ added in v0.35.0
type QuerySessionsRequest struct {
Query *v1.Payload `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
// contains filtered or unexported fields
}
QuerySessionsRequest carries a generic query against the fields advertised by GetSessionsQuerySchema.
func (*QuerySessionsRequest) Descriptor
deprecated
added in
v0.35.0
func (*QuerySessionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySessionsRequest.ProtoReflect.Descriptor instead.
func (*QuerySessionsRequest) GetQuery ¶ added in v0.35.0
func (x *QuerySessionsRequest) GetQuery() *v1.Payload
func (*QuerySessionsRequest) ProtoMessage ¶ added in v0.35.0
func (*QuerySessionsRequest) ProtoMessage()
func (*QuerySessionsRequest) ProtoReflect ¶ added in v0.35.0
func (x *QuerySessionsRequest) ProtoReflect() protoreflect.Message
func (*QuerySessionsRequest) Reset ¶ added in v0.35.0
func (x *QuerySessionsRequest) Reset()
func (*QuerySessionsRequest) String ¶ added in v0.35.0
func (x *QuerySessionsRequest) String() string
type RecordingFormat ¶ added in v0.62.5
type RecordingFormat int32
RecordingFormat is the file format a recording is stored in.
const ( RecordingFormat_RECORDING_FORMAT_UNSPECIFIED RecordingFormat = 0 // RECORDING_FORMAT_ASCIINEMA is asciinema v2 (.cast). RecordingFormat_RECORDING_FORMAT_ASCIINEMA RecordingFormat = 1 // RECORDING_FORMAT_PCAPNG is pcap-ng (.pcapng). RecordingFormat_RECORDING_FORMAT_PCAPNG RecordingFormat = 2 // RECORDING_FORMAT_NONE stores no file for the stream's raw data. It is // only valid in RecordingOptions of a TCP/IP stream that records VS Code // terminals, and never appears in RecordingMetadata. RecordingFormat_RECORDING_FORMAT_NONE RecordingFormat = 3 )
func (RecordingFormat) Descriptor ¶ added in v0.62.5
func (RecordingFormat) Descriptor() protoreflect.EnumDescriptor
func (RecordingFormat) Enum ¶ added in v0.62.5
func (x RecordingFormat) Enum() *RecordingFormat
func (RecordingFormat) EnumDescriptor
deprecated
added in
v0.62.5
func (RecordingFormat) EnumDescriptor() ([]byte, []int)
Deprecated: Use RecordingFormat.Descriptor instead.
func (RecordingFormat) Number ¶ added in v0.62.5
func (x RecordingFormat) Number() protoreflect.EnumNumber
func (RecordingFormat) String ¶ added in v0.62.5
func (x RecordingFormat) String() string
func (RecordingFormat) Type ¶ added in v0.62.5
func (RecordingFormat) Type() protoreflect.EnumType
type RecordingMetadata ¶ added in v0.62.5
type RecordingMetadata struct {
// recording_id is the server-generated identifier (UUIDv7) of the recording.
RecordingId string `protobuf:"bytes,1,opt,name=recording_id,json=recordingId,proto3" json:"recording_id,omitempty"`
// session_id is the SessionService session the recording belongs to.
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// channel_id is the channel the recording was made from. Empty for TCP/IP
// pcap-ng recordings, which are shared by all port-forward channels of a
// session to the same destination, and for VS Code terminals; set for
// TCP/IP recordings stored per channel (asciinema).
ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
// type is the channel type.
Type RecordingType `protobuf:"varint,4,opt,name=type,proto3,enum=session.v1.RecordingType" json:"type,omitempty"`
// format is the file format.
Format RecordingFormat `protobuf:"varint,5,opt,name=format,proto3,enum=session.v1.RecordingFormat" json:"format,omitempty"`
// gzip is true when the file is stored gzip-compressed.
Gzip bool `protobuf:"varint,6,opt,name=gzip,proto3" json:"gzip,omitempty"`
// size_bytes is the stored file size. Zero while still being written.
SizeBytes int64 `protobuf:"varint,7,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
// started_at is the recording start time as a Unix timestamp (seconds).
StartedAt int64 `protobuf:"varint,8,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
// ended_at is the recording end time as a Unix timestamp (seconds).
// Zero means the recording is still being written.
EndedAt int64 `protobuf:"varint,9,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"`
// command is the executed command (exec recordings only).
Command string `protobuf:"bytes,10,opt,name=command,proto3" json:"command,omitempty"`
// dst_host is the forwarded destination host (TCP/IP and VS Code
// terminal recordings).
DstHost string `protobuf:"bytes,11,opt,name=dst_host,json=dstHost,proto3" json:"dst_host,omitempty"`
// dst_port is the forwarded destination port (TCP/IP and VS Code terminal
// recordings).
DstPort uint32 `protobuf:"varint,12,opt,name=dst_port,json=dstPort,proto3" json:"dst_port,omitempty"`
// parent_recording_id is the recording this one was derived from. For a
// VS Code terminal it is the session's pcap-ng recording of the same
// destination (one per session, dst_host and dst_port, shared by all
// port-forward channels to it); empty when no pcap-ng was recorded for
// that destination.
ParentRecordingId string `protobuf:"bytes,13,opt,name=parent_recording_id,json=parentRecordingId,proto3" json:"parent_recording_id,omitempty"`
// vscode_terminal describes a RECORDING_TYPE_VSCODE_TERMINAL recording.
VscodeTerminal *VscodeTerminalInfo `protobuf:"bytes,14,opt,name=vscode_terminal,json=vscodeTerminal,proto3" json:"vscode_terminal,omitempty"`
// contains filtered or unexported fields
}
RecordingMetadata describes one stored recording.
func (*RecordingMetadata) Descriptor
deprecated
added in
v0.62.5
func (*RecordingMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RecordingMetadata.ProtoReflect.Descriptor instead.
func (*RecordingMetadata) GetChannelId ¶ added in v0.62.5
func (x *RecordingMetadata) GetChannelId() string
func (*RecordingMetadata) GetCommand ¶ added in v0.62.5
func (x *RecordingMetadata) GetCommand() string
func (*RecordingMetadata) GetDstHost ¶ added in v0.62.5
func (x *RecordingMetadata) GetDstHost() string
func (*RecordingMetadata) GetDstPort ¶ added in v0.62.5
func (x *RecordingMetadata) GetDstPort() uint32
func (*RecordingMetadata) GetEndedAt ¶ added in v0.62.5
func (x *RecordingMetadata) GetEndedAt() int64
func (*RecordingMetadata) GetFormat ¶ added in v0.62.5
func (x *RecordingMetadata) GetFormat() RecordingFormat
func (*RecordingMetadata) GetGzip ¶ added in v0.62.5
func (x *RecordingMetadata) GetGzip() bool
func (*RecordingMetadata) GetParentRecordingId ¶ added in v0.62.6
func (x *RecordingMetadata) GetParentRecordingId() string
func (*RecordingMetadata) GetRecordingId ¶ added in v0.62.5
func (x *RecordingMetadata) GetRecordingId() string
func (*RecordingMetadata) GetSessionId ¶ added in v0.62.5
func (x *RecordingMetadata) GetSessionId() string
func (*RecordingMetadata) GetSizeBytes ¶ added in v0.62.5
func (x *RecordingMetadata) GetSizeBytes() int64
func (*RecordingMetadata) GetStartedAt ¶ added in v0.62.5
func (x *RecordingMetadata) GetStartedAt() int64
func (*RecordingMetadata) GetType ¶ added in v0.62.5
func (x *RecordingMetadata) GetType() RecordingType
func (*RecordingMetadata) GetVscodeTerminal ¶ added in v0.62.6
func (x *RecordingMetadata) GetVscodeTerminal() *VscodeTerminalInfo
func (*RecordingMetadata) ProtoMessage ¶ added in v0.62.5
func (*RecordingMetadata) ProtoMessage()
func (*RecordingMetadata) ProtoReflect ¶ added in v0.62.5
func (x *RecordingMetadata) ProtoReflect() protoreflect.Message
func (*RecordingMetadata) Reset ¶ added in v0.62.5
func (x *RecordingMetadata) Reset()
func (*RecordingMetadata) String ¶ added in v0.62.5
func (x *RecordingMetadata) String() string
type RecordingOptions ¶ added in v0.62.6
type RecordingOptions struct {
// format is the file format of the stream's raw data. Unspecified uses the
// service's configured format for the stream type. RECORDING_FORMAT_NONE is
// only valid for TCP/IP streams with vscode.terminals set.
Format RecordingFormat `protobuf:"varint,1,opt,name=format,proto3,enum=session.v1.RecordingFormat" json:"format,omitempty"`
// gzip stores asciinema files gzip-compressed (.cast.gz). pcap-ng files
// are never compressed. Unset uses the service default.
Gzip *bool `protobuf:"varint,2,opt,name=gzip,proto3,oneof" json:"gzip,omitempty"`
// vscode configures VS Code detection in TCP/IP streams. Ignored for other
// stream types.
Vscode *VscodeRecordingOptions `protobuf:"bytes,3,opt,name=vscode,proto3" json:"vscode,omitempty"`
// contains filtered or unexported fields
}
RecordingOptions is the recording setup chosen by the recording client (ssh-proxy, api-server) for one stream, sent in its header. Unset fields fall back to the session service's recording configuration.
func (*RecordingOptions) Descriptor
deprecated
added in
v0.62.6
func (*RecordingOptions) Descriptor() ([]byte, []int)
Deprecated: Use RecordingOptions.ProtoReflect.Descriptor instead.
func (*RecordingOptions) GetFormat ¶ added in v0.62.6
func (x *RecordingOptions) GetFormat() RecordingFormat
func (*RecordingOptions) GetGzip ¶ added in v0.62.6
func (x *RecordingOptions) GetGzip() bool
func (*RecordingOptions) GetVscode ¶ added in v0.62.6
func (x *RecordingOptions) GetVscode() *VscodeRecordingOptions
func (*RecordingOptions) ProtoMessage ¶ added in v0.62.6
func (*RecordingOptions) ProtoMessage()
func (*RecordingOptions) ProtoReflect ¶ added in v0.62.6
func (x *RecordingOptions) ProtoReflect() protoreflect.Message
func (*RecordingOptions) Reset ¶ added in v0.62.6
func (x *RecordingOptions) Reset()
func (*RecordingOptions) String ¶ added in v0.62.6
func (x *RecordingOptions) String() string
type RecordingRef ¶ added in v0.62.5
type RecordingRef struct {
// recording_id identifies the recording (see RecordingMetadata).
RecordingId string `protobuf:"bytes,1,opt,name=recording_id,json=recordingId,proto3" json:"recording_id,omitempty"`
// type is the channel type the recording was made from.
Type RecordingType `protobuf:"varint,2,opt,name=type,proto3,enum=session.v1.RecordingType" json:"type,omitempty"`
// parent_recording_id is the recording this one was derived from (see
// RecordingMetadata). Empty for most recordings.
ParentRecordingId string `protobuf:"bytes,3,opt,name=parent_recording_id,json=parentRecordingId,proto3" json:"parent_recording_id,omitempty"`
// contains filtered or unexported fields
}
RecordingRef identifies one recording of a session and its channel type.
func (*RecordingRef) Descriptor
deprecated
added in
v0.62.5
func (*RecordingRef) Descriptor() ([]byte, []int)
Deprecated: Use RecordingRef.ProtoReflect.Descriptor instead.
func (*RecordingRef) GetParentRecordingId ¶ added in v0.62.6
func (x *RecordingRef) GetParentRecordingId() string
func (*RecordingRef) GetRecordingId ¶ added in v0.62.5
func (x *RecordingRef) GetRecordingId() string
func (*RecordingRef) GetType ¶ added in v0.62.5
func (x *RecordingRef) GetType() RecordingType
func (*RecordingRef) ProtoMessage ¶ added in v0.62.5
func (*RecordingRef) ProtoMessage()
func (*RecordingRef) ProtoReflect ¶ added in v0.62.5
func (x *RecordingRef) ProtoReflect() protoreflect.Message
func (*RecordingRef) Reset ¶ added in v0.62.5
func (x *RecordingRef) Reset()
func (*RecordingRef) String ¶ added in v0.62.5
func (x *RecordingRef) String() string
type RecordingServiceClient ¶
type RecordingServiceClient interface {
// StreamShellRecording records a PTY shell session. The first frame must
// be a ShellRecordingHeader; subsequent frames carry data chunks or
// terminal resize events.
StreamShellRecording(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[ShellRecordingFrame, empty.Empty], error)
// StreamExecRecording records a non-PTY exec channel. The first frame must
// be an ExecRecordingHeader; subsequent frames carry data chunks.
StreamExecRecording(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[ExecRecordingFrame, empty.Empty], error)
// StreamTcpipRecording records a direct-tcpip port-forward channel. The
// first frame must be a TcpipRecordingHeader; subsequent frames carry data chunks.
StreamTcpipRecording(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[TcpipRecordingFrame, empty.Empty], error)
// StreamSftpRecording records an SFTP subsystem channel. The first frame
// must be a SftpRecordingHeader; subsequent frames carry data chunks.
StreamSftpRecording(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[SftpRecordingFrame, empty.Empty], error)
// EndRecordingSession notifies the recording backend that a session has ended
// and all associated recording resources (open streams, buffers, file handles)
// should be flushed and released. Must be called once per session_id when the
// SSH session terminates, regardless of how many recording streams were opened.
EndRecordingSession(ctx context.Context, in *EndRecordingSessionRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
RecordingServiceClient is the client API for RecordingService 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.
RecordingService accepts client-streaming recording frames from k8shelld and persists them for later playback. Each RPC corresponds to a distinct SSH channel type with its own typed header and frame set.
func NewRecordingServiceClient ¶
func NewRecordingServiceClient(cc grpc.ClientConnInterface) RecordingServiceClient
type RecordingServiceServer ¶
type RecordingServiceServer interface {
// StreamShellRecording records a PTY shell session. The first frame must
// be a ShellRecordingHeader; subsequent frames carry data chunks or
// terminal resize events.
StreamShellRecording(grpc.ClientStreamingServer[ShellRecordingFrame, empty.Empty]) error
// StreamExecRecording records a non-PTY exec channel. The first frame must
// be an ExecRecordingHeader; subsequent frames carry data chunks.
StreamExecRecording(grpc.ClientStreamingServer[ExecRecordingFrame, empty.Empty]) error
// StreamTcpipRecording records a direct-tcpip port-forward channel. The
// first frame must be a TcpipRecordingHeader; subsequent frames carry data chunks.
StreamTcpipRecording(grpc.ClientStreamingServer[TcpipRecordingFrame, empty.Empty]) error
// StreamSftpRecording records an SFTP subsystem channel. The first frame
// must be a SftpRecordingHeader; subsequent frames carry data chunks.
StreamSftpRecording(grpc.ClientStreamingServer[SftpRecordingFrame, empty.Empty]) error
// EndRecordingSession notifies the recording backend that a session has ended
// and all associated recording resources (open streams, buffers, file handles)
// should be flushed and released. Must be called once per session_id when the
// SSH session terminates, regardless of how many recording streams were opened.
EndRecordingSession(context.Context, *EndRecordingSessionRequest) (*empty.Empty, error)
// contains filtered or unexported methods
}
RecordingServiceServer is the server API for RecordingService service. All implementations must embed UnimplementedRecordingServiceServer for forward compatibility.
RecordingService accepts client-streaming recording frames from k8shelld and persists them for later playback. Each RPC corresponds to a distinct SSH channel type with its own typed header and frame set.
type RecordingService_StreamExecRecordingClient ¶
type RecordingService_StreamExecRecordingClient = grpc.ClientStreamingClient[ExecRecordingFrame, empty.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type RecordingService_StreamExecRecordingServer ¶
type RecordingService_StreamExecRecordingServer = grpc.ClientStreamingServer[ExecRecordingFrame, empty.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type RecordingService_StreamSftpRecordingClient ¶
type RecordingService_StreamSftpRecordingClient = grpc.ClientStreamingClient[SftpRecordingFrame, empty.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type RecordingService_StreamSftpRecordingServer ¶
type RecordingService_StreamSftpRecordingServer = grpc.ClientStreamingServer[SftpRecordingFrame, empty.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type RecordingService_StreamShellRecordingClient ¶
type RecordingService_StreamShellRecordingClient = grpc.ClientStreamingClient[ShellRecordingFrame, empty.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type RecordingService_StreamShellRecordingServer ¶
type RecordingService_StreamShellRecordingServer = grpc.ClientStreamingServer[ShellRecordingFrame, empty.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type RecordingService_StreamTcpipRecordingClient ¶
type RecordingService_StreamTcpipRecordingClient = grpc.ClientStreamingClient[TcpipRecordingFrame, empty.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type RecordingService_StreamTcpipRecordingServer ¶
type RecordingService_StreamTcpipRecordingServer = grpc.ClientStreamingServer[TcpipRecordingFrame, empty.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type RecordingType ¶ added in v0.62.5
type RecordingType int32
RecordingType is the SSH channel type a recording was made from.
const ( RecordingType_RECORDING_TYPE_UNSPECIFIED RecordingType = 0 RecordingType_RECORDING_TYPE_SHELL RecordingType = 1 RecordingType_RECORDING_TYPE_EXEC RecordingType = 2 RecordingType_RECORDING_TYPE_TCPIP RecordingType = 3 RecordingType_RECORDING_TYPE_SFTP RecordingType = 4 // RECORDING_TYPE_VSCODE_TERMINAL is a VS Code integrated terminal found in // a port-forward that carries a VS Code remote connection, recorded as // asciinema. RecordingType_RECORDING_TYPE_VSCODE_TERMINAL RecordingType = 5 )
func (RecordingType) Descriptor ¶ added in v0.62.5
func (RecordingType) Descriptor() protoreflect.EnumDescriptor
func (RecordingType) Enum ¶ added in v0.62.5
func (x RecordingType) Enum() *RecordingType
func (RecordingType) EnumDescriptor
deprecated
added in
v0.62.5
func (RecordingType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RecordingType.Descriptor instead.
func (RecordingType) Number ¶ added in v0.62.5
func (x RecordingType) Number() protoreflect.EnumNumber
func (RecordingType) String ¶ added in v0.62.5
func (x RecordingType) String() string
func (RecordingType) Type ¶ added in v0.62.5
func (RecordingType) Type() protoreflect.EnumType
type Session ¶
type Session struct {
// session_id is the unique identifier for this session.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// username is the user that owns this session.
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// k8shelld_ver is the version of k8shelld that handled this session.
K8ShelldVer string `protobuf:"bytes,3,opt,name=k8shelld_ver,json=k8shelldVer,proto3" json:"k8shelld_ver,omitempty"`
// client is the SSH client identifier string.
Client string `protobuf:"bytes,4,opt,name=client,proto3" json:"client,omitempty"`
// client_ip is the remote IP address of the SSH client.
ClientIp string `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
// start_time is the session start time as a Unix timestamp (seconds).
StartTime int64 `protobuf:"varint,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// end_time is the session end time as a Unix timestamp (seconds).
// Zero means the session is still active.
EndTime int64 `protobuf:"varint,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// workspace is the name of the workspace this session is attached to.
Workspace string `protobuf:"bytes,8,opt,name=workspace,proto3" json:"workspace,omitempty"`
// bytes_in is the total number of bytes received from the client.
BytesIn int64 `protobuf:"varint,9,opt,name=bytes_in,json=bytesIn,proto3" json:"bytes_in,omitempty"`
// bytes_out is the total number of bytes sent to the client.
BytesOut int64 `protobuf:"varint,10,opt,name=bytes_out,json=bytesOut,proto3" json:"bytes_out,omitempty"`
// operations lists the short operation codes (see models.OperationCode)
// performed during this session, e.g. shell, pty, port-forward, sftp.
Operations []string `protobuf:"bytes,11,rep,name=operations,proto3" json:"operations,omitempty"`
// blueprint is the blueprint used by the session's workspace.
Blueprint string `protobuf:"bytes,12,opt,name=blueprint,proto3" json:"blueprint,omitempty"`
// updated_at is the time the record was last updated, as a Unix timestamp (seconds).
UpdatedAt int64 `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// recordings references the session's recordings other than exec, ordered
// by start time. Exec recordings (one per command) are not listed here as
// there can be very many; see exec_recordings. Filled by GetSessions and
// QuerySessions; ignored on input. Use ListSessionRecordings (optionally
// filtered by type and paged) for details and GetSessionRecording to
// download.
Recordings []*RecordingRef `protobuf:"bytes,14,rep,name=recordings,proto3" json:"recordings,omitempty"`
// exec_recordings is the number of exec recordings of the session.
// Filled by GetSessions and QuerySessions; ignored on input.
ExecRecordings int32 `protobuf:"varint,15,opt,name=exec_recordings,json=execRecordings,proto3" json:"exec_recordings,omitempty"`
// contains filtered or unexported fields
}
Session represents a single SSH session record.
func (*Session) Descriptor
deprecated
func (*Session) GetBlueprint ¶
func (*Session) GetBytesIn ¶
func (*Session) GetBytesOut ¶
func (*Session) GetClientIp ¶
func (*Session) GetEndTime ¶
func (*Session) GetExecRecordings ¶ added in v0.62.5
func (*Session) GetK8ShelldVer ¶
func (*Session) GetOperations ¶ added in v0.30.2
func (*Session) GetRecordings ¶ added in v0.62.5
func (x *Session) GetRecordings() []*RecordingRef
func (*Session) GetSessionId ¶
func (*Session) GetStartTime ¶
func (*Session) GetUpdatedAt ¶
func (*Session) GetUsername ¶
func (*Session) GetWorkspace ¶
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type SessionServiceClient ¶
type SessionServiceClient interface {
// GetSessions returns sessions matching the given filter criteria.
GetSessions(ctx context.Context, in *GetSessionsRequest, opts ...grpc.CallOption) (*Sessions, error)
// GetSessionsQuerySchema returns the query.v1.Descriptor advertising which
// session fields are queryable/sortable via QuerySessions, and which
// operators are valid on each.
GetSessionsQuerySchema(ctx context.Context, in *GetSessionsQuerySchemaRequest, opts ...grpc.CallOption) (*v1.Descriptor, error)
// QuerySessions retrieves sessions matching a generic query.v1.Payload, as
// advertised by GetSessionsQuerySchema.
QuerySessions(ctx context.Context, in *QuerySessionsRequest, opts ...grpc.CallOption) (*Sessions, error)
// UpsertSession creates or updates a session record.
// If a session with the given session_id already exists it is updated,
// otherwise a new record is created.
UpsertSession(ctx context.Context, in *UpsertSessionRequest, opts ...grpc.CallOption) (*UpsertSessionResponse, error)
// EndSession marks a session as ended, recording its final byte counts
// and end time.
EndSession(ctx context.Context, in *EndSessionRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetVersionInfo returns build and version metadata for this service: its
// released semantic version, the git commit it was built from, and a short
// description of what the service does.
GetVersionInfo(ctx context.Context, in *v11.GetVersionInfoRequest, opts ...grpc.CallOption) (*v11.GetVersionInfoResponse, error)
// ListSessionRecordings returns metadata for the recordings of a session,
// ordered by start time, optionally filtered by type and paged. Returns NOT_FOUND when the session does not exist
// or is not visible under the request's obligations.
ListSessionRecordings(ctx context.Context, in *ListSessionRecordingsRequest, opts ...grpc.CallOption) (*ListSessionRecordingsResponse, error)
// GetSessionRecording streams one recording file as stored. The first
// message is a RecordingMetadata; every following message is a data chunk.
// The metadata is sent for every visible recording, also when its content
// cannot be read: an unfinished pcap-ng or gzip recording then ends the
// stream with FailedPrecondition after the metadata (ended_at is 0).
GetSessionRecording(ctx context.Context, in *GetSessionRecordingRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetSessionRecordingResponse], error)
}
SessionServiceClient is the client API for SessionService 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.
SessionService manages SSH session records.
func NewSessionServiceClient ¶
func NewSessionServiceClient(cc grpc.ClientConnInterface) SessionServiceClient
type SessionServiceServer ¶
type SessionServiceServer interface {
// GetSessions returns sessions matching the given filter criteria.
GetSessions(context.Context, *GetSessionsRequest) (*Sessions, error)
// GetSessionsQuerySchema returns the query.v1.Descriptor advertising which
// session fields are queryable/sortable via QuerySessions, and which
// operators are valid on each.
GetSessionsQuerySchema(context.Context, *GetSessionsQuerySchemaRequest) (*v1.Descriptor, error)
// QuerySessions retrieves sessions matching a generic query.v1.Payload, as
// advertised by GetSessionsQuerySchema.
QuerySessions(context.Context, *QuerySessionsRequest) (*Sessions, error)
// UpsertSession creates or updates a session record.
// If a session with the given session_id already exists it is updated,
// otherwise a new record is created.
UpsertSession(context.Context, *UpsertSessionRequest) (*UpsertSessionResponse, error)
// EndSession marks a session as ended, recording its final byte counts
// and end time.
EndSession(context.Context, *EndSessionRequest) (*empty.Empty, error)
// GetVersionInfo returns build and version metadata for this service: its
// released semantic version, the git commit it was built from, and a short
// description of what the service does.
GetVersionInfo(context.Context, *v11.GetVersionInfoRequest) (*v11.GetVersionInfoResponse, error)
// ListSessionRecordings returns metadata for the recordings of a session,
// ordered by start time, optionally filtered by type and paged. Returns NOT_FOUND when the session does not exist
// or is not visible under the request's obligations.
ListSessionRecordings(context.Context, *ListSessionRecordingsRequest) (*ListSessionRecordingsResponse, error)
// GetSessionRecording streams one recording file as stored. The first
// message is a RecordingMetadata; every following message is a data chunk.
// The metadata is sent for every visible recording, also when its content
// cannot be read: an unfinished pcap-ng or gzip recording then ends the
// stream with FailedPrecondition after the metadata (ended_at is 0).
GetSessionRecording(*GetSessionRecordingRequest, grpc.ServerStreamingServer[GetSessionRecordingResponse]) error
// contains filtered or unexported methods
}
SessionServiceServer is the server API for SessionService service. All implementations must embed UnimplementedSessionServiceServer for forward compatibility.
SessionService manages SSH session records.
type SessionService_GetSessionRecordingClient ¶ added in v0.62.5
type SessionService_GetSessionRecordingClient = grpc.ServerStreamingClient[GetSessionRecordingResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SessionService_GetSessionRecordingServer ¶ added in v0.62.5
type SessionService_GetSessionRecordingServer = grpc.ServerStreamingServer[GetSessionRecordingResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Sessions ¶
type Sessions struct {
Sessions []*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
// contains filtered or unexported fields
}
Sessions is a list of session records.
func (*Sessions) Descriptor
deprecated
func (*Sessions) GetSessions ¶
func (*Sessions) ProtoMessage ¶
func (*Sessions) ProtoMessage()
func (*Sessions) ProtoReflect ¶
func (x *Sessions) ProtoReflect() protoreflect.Message
type SftpRecordingFrame ¶
type SftpRecordingFrame struct {
// Types that are valid to be assigned to Payload:
//
// *SftpRecordingFrame_Header
// *SftpRecordingFrame_Chunk
Payload isSftpRecordingFrame_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
SftpRecordingFrame is a single unit in an SFTP recording stream.
func (*SftpRecordingFrame) Descriptor
deprecated
func (*SftpRecordingFrame) Descriptor() ([]byte, []int)
Deprecated: Use SftpRecordingFrame.ProtoReflect.Descriptor instead.
func (*SftpRecordingFrame) GetChunk ¶
func (x *SftpRecordingFrame) GetChunk() *DataChunk
func (*SftpRecordingFrame) GetHeader ¶
func (x *SftpRecordingFrame) GetHeader() *SftpRecordingHeader
func (*SftpRecordingFrame) GetPayload ¶
func (x *SftpRecordingFrame) GetPayload() isSftpRecordingFrame_Payload
func (*SftpRecordingFrame) ProtoMessage ¶
func (*SftpRecordingFrame) ProtoMessage()
func (*SftpRecordingFrame) ProtoReflect ¶
func (x *SftpRecordingFrame) ProtoReflect() protoreflect.Message
func (*SftpRecordingFrame) Reset ¶
func (x *SftpRecordingFrame) Reset()
func (*SftpRecordingFrame) String ¶
func (x *SftpRecordingFrame) String() string
type SftpRecordingFrame_Chunk ¶
type SftpRecordingFrame_Chunk struct {
// chunk carries a block of raw SFTP protocol data.
Chunk *DataChunk `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}
type SftpRecordingFrame_Header ¶
type SftpRecordingFrame_Header struct {
// header is the first frame and carries SFTP session metadata.
Header *SftpRecordingHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"`
}
type SftpRecordingHeader ¶
type SftpRecordingHeader struct {
// session_id is the channel ID: the per-channel identifier the recording
// client passed to k8shelld (for example "sh-<connId>3" from ssh-proxy).
// It equals connection_id when the session has a single channel, as for an
// api-server webshell. Required.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// user_token is the token of the user owning the session being recorded.
UserToken string `protobuf:"bytes,2,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"`
// started_at is the channel start time as a Unix timestamp (seconds).
StartedAt int64 `protobuf:"varint,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
// connection_id is the SessionService session ID: the same value the
// recording client sends as SessionId to UpsertSession and EndSession
// (one per SSH connection or webshell session). Required.
ConnectionId string `protobuf:"bytes,4,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// options is the recording setup for this stream. Unset uses the
// service defaults.
Options *RecordingOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
SftpRecordingHeader is the mandatory first frame of an SFTP recording stream.
func (*SftpRecordingHeader) Descriptor
deprecated
func (*SftpRecordingHeader) Descriptor() ([]byte, []int)
Deprecated: Use SftpRecordingHeader.ProtoReflect.Descriptor instead.
func (*SftpRecordingHeader) GetConnectionId ¶
func (x *SftpRecordingHeader) GetConnectionId() string
func (*SftpRecordingHeader) GetOptions ¶ added in v0.62.6
func (x *SftpRecordingHeader) GetOptions() *RecordingOptions
func (*SftpRecordingHeader) GetSessionId ¶
func (x *SftpRecordingHeader) GetSessionId() string
func (*SftpRecordingHeader) GetStartedAt ¶
func (x *SftpRecordingHeader) GetStartedAt() int64
func (*SftpRecordingHeader) GetUserToken ¶
func (x *SftpRecordingHeader) GetUserToken() string
func (*SftpRecordingHeader) ProtoMessage ¶
func (*SftpRecordingHeader) ProtoMessage()
func (*SftpRecordingHeader) ProtoReflect ¶
func (x *SftpRecordingHeader) ProtoReflect() protoreflect.Message
func (*SftpRecordingHeader) Reset ¶
func (x *SftpRecordingHeader) Reset()
func (*SftpRecordingHeader) String ¶
func (x *SftpRecordingHeader) String() string
type ShellRecordingFrame ¶
type ShellRecordingFrame struct {
// Types that are valid to be assigned to Payload:
//
// *ShellRecordingFrame_Header
// *ShellRecordingFrame_Chunk
// *ShellRecordingFrame_Resize
Payload isShellRecordingFrame_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
ShellRecordingFrame is a single unit in a shell recording stream.
func (*ShellRecordingFrame) Descriptor
deprecated
func (*ShellRecordingFrame) Descriptor() ([]byte, []int)
Deprecated: Use ShellRecordingFrame.ProtoReflect.Descriptor instead.
func (*ShellRecordingFrame) GetChunk ¶
func (x *ShellRecordingFrame) GetChunk() *DataChunk
func (*ShellRecordingFrame) GetHeader ¶
func (x *ShellRecordingFrame) GetHeader() *ShellRecordingHeader
func (*ShellRecordingFrame) GetPayload ¶
func (x *ShellRecordingFrame) GetPayload() isShellRecordingFrame_Payload
func (*ShellRecordingFrame) GetResize ¶
func (x *ShellRecordingFrame) GetResize() *TerminalResize
func (*ShellRecordingFrame) ProtoMessage ¶
func (*ShellRecordingFrame) ProtoMessage()
func (*ShellRecordingFrame) ProtoReflect ¶
func (x *ShellRecordingFrame) ProtoReflect() protoreflect.Message
func (*ShellRecordingFrame) Reset ¶
func (x *ShellRecordingFrame) Reset()
func (*ShellRecordingFrame) String ¶
func (x *ShellRecordingFrame) String() string
type ShellRecordingFrame_Chunk ¶
type ShellRecordingFrame_Chunk struct {
// chunk carries a block of raw terminal data.
Chunk *DataChunk `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}
type ShellRecordingFrame_Header ¶
type ShellRecordingFrame_Header struct {
// header is the first frame and carries PTY session metadata.
Header *ShellRecordingHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"`
}
type ShellRecordingFrame_Resize ¶
type ShellRecordingFrame_Resize struct {
// resize carries a terminal window-change event.
Resize *TerminalResize `protobuf:"bytes,3,opt,name=resize,proto3,oneof"`
}
type ShellRecordingHeader ¶
type ShellRecordingHeader struct {
// session_id is the channel ID: the per-channel identifier the recording
// client passed to k8shelld (for example "sh-<connId>3" from ssh-proxy).
// It equals connection_id when the session has a single channel, as for an
// api-server webshell. Required.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// user_token is the token of the user owning the session being recorded.
UserToken string `protobuf:"bytes,2,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"`
// started_at is the channel start time as a Unix timestamp (seconds).
StartedAt int64 `protobuf:"varint,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
// width is the initial terminal width in columns.
Width uint32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
// height is the initial terminal height in rows.
Height uint32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
// connection_id is the SessionService session ID: the same value the
// recording client sends as SessionId to UpsertSession and EndSession
// (one per SSH connection or webshell session). Required.
ConnectionId string `protobuf:"bytes,6,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// options is the recording setup for this stream. Unset uses the
// service defaults.
Options *RecordingOptions `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
ShellRecordingHeader is the mandatory first frame of a shell recording stream.
func (*ShellRecordingHeader) Descriptor
deprecated
func (*ShellRecordingHeader) Descriptor() ([]byte, []int)
Deprecated: Use ShellRecordingHeader.ProtoReflect.Descriptor instead.
func (*ShellRecordingHeader) GetConnectionId ¶
func (x *ShellRecordingHeader) GetConnectionId() string
func (*ShellRecordingHeader) GetHeight ¶
func (x *ShellRecordingHeader) GetHeight() uint32
func (*ShellRecordingHeader) GetOptions ¶ added in v0.62.6
func (x *ShellRecordingHeader) GetOptions() *RecordingOptions
func (*ShellRecordingHeader) GetSessionId ¶
func (x *ShellRecordingHeader) GetSessionId() string
func (*ShellRecordingHeader) GetStartedAt ¶
func (x *ShellRecordingHeader) GetStartedAt() int64
func (*ShellRecordingHeader) GetUserToken ¶
func (x *ShellRecordingHeader) GetUserToken() string
func (*ShellRecordingHeader) GetWidth ¶
func (x *ShellRecordingHeader) GetWidth() uint32
func (*ShellRecordingHeader) ProtoMessage ¶
func (*ShellRecordingHeader) ProtoMessage()
func (*ShellRecordingHeader) ProtoReflect ¶
func (x *ShellRecordingHeader) ProtoReflect() protoreflect.Message
func (*ShellRecordingHeader) Reset ¶
func (x *ShellRecordingHeader) Reset()
func (*ShellRecordingHeader) String ¶
func (x *ShellRecordingHeader) String() string
type TcpipRecordingFrame ¶
type TcpipRecordingFrame struct {
// Types that are valid to be assigned to Payload:
//
// *TcpipRecordingFrame_Header
// *TcpipRecordingFrame_Chunk
Payload isTcpipRecordingFrame_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
TcpipRecordingFrame is a single unit in a direct-tcpip recording stream.
func (*TcpipRecordingFrame) Descriptor
deprecated
func (*TcpipRecordingFrame) Descriptor() ([]byte, []int)
Deprecated: Use TcpipRecordingFrame.ProtoReflect.Descriptor instead.
func (*TcpipRecordingFrame) GetChunk ¶
func (x *TcpipRecordingFrame) GetChunk() *DataChunk
func (*TcpipRecordingFrame) GetHeader ¶
func (x *TcpipRecordingFrame) GetHeader() *TcpipRecordingHeader
func (*TcpipRecordingFrame) GetPayload ¶
func (x *TcpipRecordingFrame) GetPayload() isTcpipRecordingFrame_Payload
func (*TcpipRecordingFrame) ProtoMessage ¶
func (*TcpipRecordingFrame) ProtoMessage()
func (*TcpipRecordingFrame) ProtoReflect ¶
func (x *TcpipRecordingFrame) ProtoReflect() protoreflect.Message
func (*TcpipRecordingFrame) Reset ¶
func (x *TcpipRecordingFrame) Reset()
func (*TcpipRecordingFrame) String ¶
func (x *TcpipRecordingFrame) String() string
type TcpipRecordingFrame_Chunk ¶
type TcpipRecordingFrame_Chunk struct {
// chunk carries a block of raw forwarded data.
Chunk *DataChunk `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}
type TcpipRecordingFrame_Header ¶
type TcpipRecordingFrame_Header struct {
// header is the first frame and carries port-forward metadata.
Header *TcpipRecordingHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"`
}
type TcpipRecordingHeader ¶
type TcpipRecordingHeader struct {
// session_id is the channel ID: the per-channel identifier the recording
// client passed to k8shelld (for example "sh-<connId>3" from ssh-proxy).
// It equals connection_id when the session has a single channel, as for an
// api-server webshell. Required.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// user_token is the token of the user owning the session being recorded.
UserToken string `protobuf:"bytes,2,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"`
// started_at is the channel start time as a Unix timestamp (seconds).
StartedAt int64 `protobuf:"varint,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
// src_host is the originating host of the port-forward request.
SrcHost string `protobuf:"bytes,4,opt,name=src_host,json=srcHost,proto3" json:"src_host,omitempty"`
// src_port is the originating port of the port-forward request.
SrcPort uint32 `protobuf:"varint,5,opt,name=src_port,json=srcPort,proto3" json:"src_port,omitempty"`
// dst_host is the destination host of the port-forward request.
DstHost string `protobuf:"bytes,6,opt,name=dst_host,json=dstHost,proto3" json:"dst_host,omitempty"`
// dst_port is the destination port of the port-forward request.
DstPort uint32 `protobuf:"varint,7,opt,name=dst_port,json=dstPort,proto3" json:"dst_port,omitempty"`
// connection_id is the SessionService session ID: the same value the
// recording client sends as SessionId to UpsertSession and EndSession
// (one per SSH connection or webshell session). Required.
ConnectionId string `protobuf:"bytes,8,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// options is the recording setup for this stream. Unset uses the
// service defaults.
Options *RecordingOptions `protobuf:"bytes,9,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
TcpipRecordingHeader is the mandatory first frame of a direct-tcpip recording stream.
func (*TcpipRecordingHeader) Descriptor
deprecated
func (*TcpipRecordingHeader) Descriptor() ([]byte, []int)
Deprecated: Use TcpipRecordingHeader.ProtoReflect.Descriptor instead.
func (*TcpipRecordingHeader) GetConnectionId ¶
func (x *TcpipRecordingHeader) GetConnectionId() string
func (*TcpipRecordingHeader) GetDstHost ¶
func (x *TcpipRecordingHeader) GetDstHost() string
func (*TcpipRecordingHeader) GetDstPort ¶
func (x *TcpipRecordingHeader) GetDstPort() uint32
func (*TcpipRecordingHeader) GetOptions ¶ added in v0.62.6
func (x *TcpipRecordingHeader) GetOptions() *RecordingOptions
func (*TcpipRecordingHeader) GetSessionId ¶
func (x *TcpipRecordingHeader) GetSessionId() string
func (*TcpipRecordingHeader) GetSrcHost ¶
func (x *TcpipRecordingHeader) GetSrcHost() string
func (*TcpipRecordingHeader) GetSrcPort ¶
func (x *TcpipRecordingHeader) GetSrcPort() uint32
func (*TcpipRecordingHeader) GetStartedAt ¶
func (x *TcpipRecordingHeader) GetStartedAt() int64
func (*TcpipRecordingHeader) GetUserToken ¶
func (x *TcpipRecordingHeader) GetUserToken() string
func (*TcpipRecordingHeader) ProtoMessage ¶
func (*TcpipRecordingHeader) ProtoMessage()
func (*TcpipRecordingHeader) ProtoReflect ¶
func (x *TcpipRecordingHeader) ProtoReflect() protoreflect.Message
func (*TcpipRecordingHeader) Reset ¶
func (x *TcpipRecordingHeader) Reset()
func (*TcpipRecordingHeader) String ¶
func (x *TcpipRecordingHeader) String() string
type TerminalResize ¶
type TerminalResize struct {
// time_offset_ms is the number of milliseconds elapsed since the recording started_at.
TimeOffsetMs int64 `protobuf:"varint,1,opt,name=time_offset_ms,json=timeOffsetMs,proto3" json:"time_offset_ms,omitempty"`
// width is the new terminal width in columns.
Width uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
// height is the new terminal height in rows.
Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
TerminalResize records a PTY window-change event.
func (*TerminalResize) Descriptor
deprecated
func (*TerminalResize) Descriptor() ([]byte, []int)
Deprecated: Use TerminalResize.ProtoReflect.Descriptor instead.
func (*TerminalResize) GetHeight ¶
func (x *TerminalResize) GetHeight() uint32
func (*TerminalResize) GetTimeOffsetMs ¶
func (x *TerminalResize) GetTimeOffsetMs() int64
func (*TerminalResize) GetWidth ¶
func (x *TerminalResize) GetWidth() uint32
func (*TerminalResize) ProtoMessage ¶
func (*TerminalResize) ProtoMessage()
func (*TerminalResize) ProtoReflect ¶
func (x *TerminalResize) ProtoReflect() protoreflect.Message
func (*TerminalResize) Reset ¶
func (x *TerminalResize) Reset()
func (*TerminalResize) String ¶
func (x *TerminalResize) String() string
type UnimplementedRecordingServiceServer ¶
type UnimplementedRecordingServiceServer struct{}
UnimplementedRecordingServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedRecordingServiceServer) EndRecordingSession ¶
func (UnimplementedRecordingServiceServer) EndRecordingSession(context.Context, *EndRecordingSessionRequest) (*empty.Empty, error)
func (UnimplementedRecordingServiceServer) StreamExecRecording ¶
func (UnimplementedRecordingServiceServer) StreamExecRecording(grpc.ClientStreamingServer[ExecRecordingFrame, empty.Empty]) error
func (UnimplementedRecordingServiceServer) StreamSftpRecording ¶
func (UnimplementedRecordingServiceServer) StreamSftpRecording(grpc.ClientStreamingServer[SftpRecordingFrame, empty.Empty]) error
func (UnimplementedRecordingServiceServer) StreamShellRecording ¶
func (UnimplementedRecordingServiceServer) StreamShellRecording(grpc.ClientStreamingServer[ShellRecordingFrame, empty.Empty]) error
func (UnimplementedRecordingServiceServer) StreamTcpipRecording ¶
func (UnimplementedRecordingServiceServer) StreamTcpipRecording(grpc.ClientStreamingServer[TcpipRecordingFrame, empty.Empty]) error
type UnimplementedSessionServiceServer ¶
type UnimplementedSessionServiceServer struct{}
UnimplementedSessionServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSessionServiceServer) EndSession ¶
func (UnimplementedSessionServiceServer) EndSession(context.Context, *EndSessionRequest) (*empty.Empty, error)
func (UnimplementedSessionServiceServer) GetSessionRecording ¶ added in v0.62.5
func (UnimplementedSessionServiceServer) GetSessionRecording(*GetSessionRecordingRequest, grpc.ServerStreamingServer[GetSessionRecordingResponse]) error
func (UnimplementedSessionServiceServer) GetSessions ¶
func (UnimplementedSessionServiceServer) GetSessions(context.Context, *GetSessionsRequest) (*Sessions, error)
func (UnimplementedSessionServiceServer) GetSessionsQuerySchema ¶ added in v0.35.0
func (UnimplementedSessionServiceServer) GetSessionsQuerySchema(context.Context, *GetSessionsQuerySchemaRequest) (*v1.Descriptor, error)
func (UnimplementedSessionServiceServer) GetVersionInfo ¶ added in v0.49.0
func (UnimplementedSessionServiceServer) GetVersionInfo(context.Context, *v11.GetVersionInfoRequest) (*v11.GetVersionInfoResponse, error)
func (UnimplementedSessionServiceServer) ListSessionRecordings ¶ added in v0.62.5
func (UnimplementedSessionServiceServer) ListSessionRecordings(context.Context, *ListSessionRecordingsRequest) (*ListSessionRecordingsResponse, error)
func (UnimplementedSessionServiceServer) QuerySessions ¶ added in v0.35.0
func (UnimplementedSessionServiceServer) QuerySessions(context.Context, *QuerySessionsRequest) (*Sessions, error)
func (UnimplementedSessionServiceServer) UpsertSession ¶
func (UnimplementedSessionServiceServer) UpsertSession(context.Context, *UpsertSessionRequest) (*UpsertSessionResponse, error)
type UnsafeRecordingServiceServer ¶
type UnsafeRecordingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRecordingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RecordingServiceServer will result in compilation errors.
type UnsafeSessionServiceServer ¶
type UnsafeSessionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSessionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SessionServiceServer will result in compilation errors.
type UpsertSessionRequest ¶
type UpsertSessionRequest struct {
// session is the session data to persist.
Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
// contains filtered or unexported fields
}
UpsertSessionRequest carries the full session record to create or update.
func (*UpsertSessionRequest) Descriptor
deprecated
func (*UpsertSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpsertSessionRequest.ProtoReflect.Descriptor instead.
func (*UpsertSessionRequest) GetSession ¶
func (x *UpsertSessionRequest) GetSession() *Session
func (*UpsertSessionRequest) ProtoMessage ¶
func (*UpsertSessionRequest) ProtoMessage()
func (*UpsertSessionRequest) ProtoReflect ¶
func (x *UpsertSessionRequest) ProtoReflect() protoreflect.Message
func (*UpsertSessionRequest) Reset ¶
func (x *UpsertSessionRequest) Reset()
func (*UpsertSessionRequest) String ¶
func (x *UpsertSessionRequest) String() string
type UpsertSessionResponse ¶
type UpsertSessionResponse struct {
// session is the session as stored, reflecting any server-side defaults.
Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
// contains filtered or unexported fields
}
UpsertSessionResponse carries the persisted session record after upsert.
func (*UpsertSessionResponse) Descriptor
deprecated
func (*UpsertSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpsertSessionResponse.ProtoReflect.Descriptor instead.
func (*UpsertSessionResponse) GetSession ¶
func (x *UpsertSessionResponse) GetSession() *Session
func (*UpsertSessionResponse) ProtoMessage ¶
func (*UpsertSessionResponse) ProtoMessage()
func (*UpsertSessionResponse) ProtoReflect ¶
func (x *UpsertSessionResponse) ProtoReflect() protoreflect.Message
func (*UpsertSessionResponse) Reset ¶
func (x *UpsertSessionResponse) Reset()
func (*UpsertSessionResponse) String ¶
func (x *UpsertSessionResponse) String() string
type VscodeRecordingOptions ¶ added in v0.62.6
type VscodeRecordingOptions struct {
// terminals records each VS Code integrated terminal found in the
// port-forward as its own asciinema recording. Unset uses the service
// default.
Terminals *bool `protobuf:"varint,1,opt,name=terminals,proto3,oneof" json:"terminals,omitempty"`
// record_input includes terminal keystrokes ("i" events) in those
// recordings. Unset uses the service default.
RecordInput *bool `protobuf:"varint,2,opt,name=record_input,json=recordInput,proto3,oneof" json:"record_input,omitempty"`
// contains filtered or unexported fields
}
VscodeRecordingOptions configures recording of VS Code remote sessions carried by a port-forward.
func (*VscodeRecordingOptions) Descriptor
deprecated
added in
v0.62.6
func (*VscodeRecordingOptions) Descriptor() ([]byte, []int)
Deprecated: Use VscodeRecordingOptions.ProtoReflect.Descriptor instead.
func (*VscodeRecordingOptions) GetRecordInput ¶ added in v0.62.6
func (x *VscodeRecordingOptions) GetRecordInput() bool
func (*VscodeRecordingOptions) GetTerminals ¶ added in v0.62.6
func (x *VscodeRecordingOptions) GetTerminals() bool
func (*VscodeRecordingOptions) ProtoMessage ¶ added in v0.62.6
func (*VscodeRecordingOptions) ProtoMessage()
func (*VscodeRecordingOptions) ProtoReflect ¶ added in v0.62.6
func (x *VscodeRecordingOptions) ProtoReflect() protoreflect.Message
func (*VscodeRecordingOptions) Reset ¶ added in v0.62.6
func (x *VscodeRecordingOptions) Reset()
func (*VscodeRecordingOptions) String ¶ added in v0.62.6
func (x *VscodeRecordingOptions) String() string
type VscodeTerminalInfo ¶ added in v0.62.6
type VscodeTerminalInfo struct {
// terminal_id is the VS Code persistent terminal ID, unique per VS Code
// server. A terminal reattached after a window reload keeps its ID and
// gets a new recording.
TerminalId uint32 `protobuf:"varint,1,opt,name=terminal_id,json=terminalId,proto3" json:"terminal_id,omitempty"`
// title is the terminal's last title (for example "bash").
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// shell is the executable the terminal runs (for example "/bin/bash").
Shell string `protobuf:"bytes,3,opt,name=shell,proto3" json:"shell,omitempty"`
// exit_code is the shell's exit code. Unset while the terminal runs, or
// when the recording ended without the terminal exiting.
ExitCode *int32 `protobuf:"varint,4,opt,name=exit_code,json=exitCode,proto3,oneof" json:"exit_code,omitempty"`
// vscode_commit is the commit of the VS Code server.
VscodeCommit string `protobuf:"bytes,5,opt,name=vscode_commit,json=vscodeCommit,proto3" json:"vscode_commit,omitempty"`
// contains filtered or unexported fields
}
VscodeTerminalInfo describes a VS Code integrated terminal.
func (*VscodeTerminalInfo) Descriptor
deprecated
added in
v0.62.6
func (*VscodeTerminalInfo) Descriptor() ([]byte, []int)
Deprecated: Use VscodeTerminalInfo.ProtoReflect.Descriptor instead.
func (*VscodeTerminalInfo) GetExitCode ¶ added in v0.62.6
func (x *VscodeTerminalInfo) GetExitCode() int32
func (*VscodeTerminalInfo) GetShell ¶ added in v0.62.6
func (x *VscodeTerminalInfo) GetShell() string
func (*VscodeTerminalInfo) GetTerminalId ¶ added in v0.62.6
func (x *VscodeTerminalInfo) GetTerminalId() uint32
func (*VscodeTerminalInfo) GetTitle ¶ added in v0.62.6
func (x *VscodeTerminalInfo) GetTitle() string
func (*VscodeTerminalInfo) GetVscodeCommit ¶ added in v0.62.6
func (x *VscodeTerminalInfo) GetVscodeCommit() string
func (*VscodeTerminalInfo) ProtoMessage ¶ added in v0.62.6
func (*VscodeTerminalInfo) ProtoMessage()
func (*VscodeTerminalInfo) ProtoReflect ¶ added in v0.62.6
func (x *VscodeTerminalInfo) ProtoReflect() protoreflect.Message
func (*VscodeTerminalInfo) Reset ¶ added in v0.62.6
func (x *VscodeTerminalInfo) Reset()
func (*VscodeTerminalInfo) String ¶ added in v0.62.6
func (x *VscodeTerminalInfo) String() string