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) 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) 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 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 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 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 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) GetK8ShelldVer() string
- func (x *Session) GetOperations() []string
- 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 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) 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) 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) 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) (*emptypb.Empty, error)
- func (UnimplementedRecordingServiceServer) StreamExecRecording(grpc.ClientStreamingServer[ExecRecordingFrame, emptypb.Empty]) error
- func (UnimplementedRecordingServiceServer) StreamSftpRecording(grpc.ClientStreamingServer[SftpRecordingFrame, emptypb.Empty]) error
- func (UnimplementedRecordingServiceServer) StreamShellRecording(grpc.ClientStreamingServer[ShellRecordingFrame, emptypb.Empty]) error
- func (UnimplementedRecordingServiceServer) StreamTcpipRecording(grpc.ClientStreamingServer[TcpipRecordingFrame, emptypb.Empty]) error
- type UnimplementedSessionServiceServer
- func (UnimplementedSessionServiceServer) EndSession(context.Context, *EndSessionRequest) (*emptypb.Empty, error)
- func (UnimplementedSessionServiceServer) GetSessions(context.Context, *GetSessionsRequest) (*Sessions, error)
- func (UnimplementedSessionServiceServer) GetSessionsQuerySchema(context.Context, *GetSessionsQuerySchemaRequest) (*v1.Descriptor, 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
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" )
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 ( 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, }, }, Streams: []grpc.StreamDesc{}, 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"`
// 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) 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 ties this recording to a SessionService session record.
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 unique identifier of the SSH connection.
ConnectionId string `protobuf:"bytes,5,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,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) 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 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 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 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, emptypb.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, emptypb.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, emptypb.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, emptypb.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) (*emptypb.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, emptypb.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, emptypb.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, emptypb.Empty]) error
// StreamSftpRecording records an SFTP subsystem channel. The first frame
// must be a SftpRecordingHeader; subsequent frames carry data chunks.
StreamSftpRecording(grpc.ClientStreamingServer[SftpRecordingFrame, emptypb.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) (*emptypb.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, emptypb.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, emptypb.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, emptypb.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, emptypb.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, emptypb.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, emptypb.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, emptypb.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, emptypb.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
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"`
// 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) GetK8ShelldVer ¶
func (*Session) GetOperations ¶ added in v0.30.2
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) (*emptypb.Empty, 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) (*emptypb.Empty, 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 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 ties this recording to a SessionService session record.
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 unique identifier of the SSH connection.
ConnectionId string `protobuf:"bytes,4,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,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) 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 ties this recording to a SessionService session record.
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 unique identifier of the SSH connection.
ConnectionId string `protobuf:"bytes,6,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,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) 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 ties this recording to a SessionService session record.
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 unique identifier of the SSH connection.
ConnectionId string `protobuf:"bytes,8,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,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) 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) (*emptypb.Empty, error)
func (UnimplementedRecordingServiceServer) StreamExecRecording ¶
func (UnimplementedRecordingServiceServer) StreamExecRecording(grpc.ClientStreamingServer[ExecRecordingFrame, emptypb.Empty]) error
func (UnimplementedRecordingServiceServer) StreamSftpRecording ¶
func (UnimplementedRecordingServiceServer) StreamSftpRecording(grpc.ClientStreamingServer[SftpRecordingFrame, emptypb.Empty]) error
func (UnimplementedRecordingServiceServer) StreamShellRecording ¶
func (UnimplementedRecordingServiceServer) StreamShellRecording(grpc.ClientStreamingServer[ShellRecordingFrame, emptypb.Empty]) error
func (UnimplementedRecordingServiceServer) StreamTcpipRecording ¶
func (UnimplementedRecordingServiceServer) StreamTcpipRecording(grpc.ClientStreamingServer[TcpipRecordingFrame, emptypb.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) (*emptypb.Empty, 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) 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