sessionv1

package
v0.65.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionService_GetSessions_FullMethodName                  = "/session.v1.SessionService/GetSessions"
	SessionService_GetSessionsQuerySchema_FullMethodName       = "/session.v1.SessionService/GetSessionsQuerySchema"
	SessionService_QuerySessions_FullMethodName                = "/session.v1.SessionService/QuerySessions"
	SessionService_GetLastSessions_FullMethodName              = "/session.v1.SessionService/GetLastSessions"
	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"
	SessionService_ListSessionRecordingCommands_FullMethodName = "/session.v1.SessionService/ListSessionRecordingCommands"
)
View Source
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

View Source
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.

View Source
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.

View Source
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.

View Source
var File_session_v1_session_proto protoreflect.FileDescriptor
View Source
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)

View Source
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: "GetLastSessions",
			Handler:    _SessionService_GetLastSessions_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,
		},
		{
			MethodName: "ListSessionRecordingCommands",
			Handler:    _SessionService_ListSessionRecordingCommands_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) Descriptor() ([]byte, []int)

Deprecated: Use DataChunk.ProtoReflect.Descriptor instead.

func (*DataChunk) GetData

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

func (*DataChunk) GetDirection

func (x *DataChunk) GetDirection() Direction

func (*DataChunk) GetDroppedBytes added in v0.62.6

func (x *DataChunk) GetDroppedBytes() uint64

func (*DataChunk) GetTimeOffsetMs

func (x *DataChunk) GetTimeOffsetMs() int64

func (*DataChunk) ProtoMessage

func (*DataChunk) ProtoMessage()

func (*DataChunk) ProtoReflect

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

func (*DataChunk) Reset

func (x *DataChunk) Reset()

func (*DataChunk) String

func (x *DataChunk) String() string

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

func (x Direction) Enum() *Direction

func (Direction) EnumDescriptor deprecated

func (Direction) EnumDescriptor() ([]byte, []int)

Deprecated: Use Direction.Descriptor instead.

func (Direction) Number

func (x Direction) Number() protoreflect.EnumNumber

func (Direction) String

func (x Direction) String() string

func (Direction) Type

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 (*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 GetLastSessionsRequest added in v0.63.7

type GetLastSessionsRequest struct {

	// workspaces are the workspaces to look up, at most 1000. Duplicates are
	// allowed and yield one session.
	Workspaces []*WorkspaceRef `protobuf:"bytes,1,rep,name=workspaces,proto3" json:"workspaces,omitempty"`
	// obligations carries the authz obligations; see ListSessionRecordingsRequest.
	Obligations map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

GetLastSessionsRequest lists the workspaces whose last session to return.

func (*GetLastSessionsRequest) Descriptor deprecated added in v0.63.7

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

Deprecated: Use GetLastSessionsRequest.ProtoReflect.Descriptor instead.

func (*GetLastSessionsRequest) GetObligations added in v0.63.7

func (x *GetLastSessionsRequest) GetObligations() map[string]string

func (*GetLastSessionsRequest) GetWorkspaces added in v0.63.7

func (x *GetLastSessionsRequest) GetWorkspaces() []*WorkspaceRef

func (*GetLastSessionsRequest) ProtoMessage added in v0.63.7

func (*GetLastSessionsRequest) ProtoMessage()

func (*GetLastSessionsRequest) ProtoReflect added in v0.63.7

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

func (*GetLastSessionsRequest) Reset added in v0.63.7

func (x *GetLastSessionsRequest) Reset()

func (*GetLastSessionsRequest) String added in v0.63.7

func (x *GetLastSessionsRequest) 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 (*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 (*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 (*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 (*GetSessionsQuerySchemaRequest) Reset added in v0.35.0

func (x *GetSessionsQuerySchemaRequest) Reset()

func (*GetSessionsQuerySchemaRequest) String added in v0.35.0

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 ListSessionRecordingCommandsRequest added in v0.62.7

type ListSessionRecordingCommandsRequest struct {

	// recording_id identifies the recording.
	RecordingId string `protobuf:"bytes,1,opt,name=recording_id,json=recordingId,proto3" json:"recording_id,omitempty"`
	// limit is the maximum number of commands to return. 0 selects the server
	// default; larger values are capped.
	Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// offset is the number of commands to skip.
	Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// max_output_bytes is the maximum size of each command's output. 0
	// selects the server default; larger values are capped (64 KiB).
	MaxOutputBytes int32 `protobuf:"varint,4,opt,name=max_output_bytes,json=maxOutputBytes,proto3" json:"max_output_bytes,omitempty"`
	// contains filtered or unexported fields
}

ListSessionRecordingCommandsRequest selects a terminal recording and a page of its commands.

func (*ListSessionRecordingCommandsRequest) Descriptor deprecated added in v0.62.7

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

Deprecated: Use ListSessionRecordingCommandsRequest.ProtoReflect.Descriptor instead.

func (*ListSessionRecordingCommandsRequest) GetLimit added in v0.62.7

func (*ListSessionRecordingCommandsRequest) GetMaxOutputBytes added in v0.62.7

func (x *ListSessionRecordingCommandsRequest) GetMaxOutputBytes() int32

func (*ListSessionRecordingCommandsRequest) GetOffset added in v0.62.7

func (*ListSessionRecordingCommandsRequest) GetRecordingId added in v0.62.7

func (x *ListSessionRecordingCommandsRequest) GetRecordingId() string

func (*ListSessionRecordingCommandsRequest) ProtoMessage added in v0.62.7

func (*ListSessionRecordingCommandsRequest) ProtoMessage()

func (*ListSessionRecordingCommandsRequest) ProtoReflect added in v0.62.7

func (*ListSessionRecordingCommandsRequest) Reset added in v0.62.7

func (*ListSessionRecordingCommandsRequest) String added in v0.62.7

type ListSessionRecordingCommandsResponse added in v0.62.7

type ListSessionRecordingCommandsResponse struct {

	// metadata describes the recording; ended_at is 0 when only the part
	// recorded so far was read.
	Metadata *RecordingMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// commands are the page's commands by start time.
	Commands []*RecordingCommand `protobuf:"bytes,2,rep,name=commands,proto3" json:"commands,omitempty"`
	// total is the number of commands in the whole recording, regardless of
	// limit and offset.
	Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

ListSessionRecordingCommandsResponse is one page of a recording's commands.

func (*ListSessionRecordingCommandsResponse) Descriptor deprecated added in v0.62.7

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

Deprecated: Use ListSessionRecordingCommandsResponse.ProtoReflect.Descriptor instead.

func (*ListSessionRecordingCommandsResponse) GetCommands added in v0.62.7

func (*ListSessionRecordingCommandsResponse) GetMetadata added in v0.62.7

func (*ListSessionRecordingCommandsResponse) GetTotal added in v0.62.7

func (*ListSessionRecordingCommandsResponse) ProtoMessage added in v0.62.7

func (*ListSessionRecordingCommandsResponse) ProtoMessage()

func (*ListSessionRecordingCommandsResponse) ProtoReflect added in v0.62.7

func (*ListSessionRecordingCommandsResponse) Reset added in v0.62.7

func (*ListSessionRecordingCommandsResponse) String added in v0.62.7

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 (*ListSessionRecordingsRequest) ProtoMessage added in v0.62.5

func (*ListSessionRecordingsRequest) ProtoMessage()

func (*ListSessionRecordingsRequest) ProtoReflect added in v0.62.5

func (*ListSessionRecordingsRequest) Reset added in v0.62.5

func (x *ListSessionRecordingsRequest) Reset()

func (*ListSessionRecordingsRequest) String added in v0.62.5

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 (*ListSessionRecordingsResponse) Reset added in v0.62.5

func (x *ListSessionRecordingsResponse) Reset()

func (*ListSessionRecordingsResponse) String added in v0.62.5

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 RecordingCommand added in v0.62.7

type RecordingCommand struct {

	// time_offset_ms is when the command was started (Enter pressed), in
	// milliseconds since the recording's start, the time base of the
	// recording's asciinema events.
	TimeOffsetMs int64 `protobuf:"varint,1,opt,name=time_offset_ms,json=timeOffsetMs,proto3" json:"time_offset_ms,omitempty"`
	// end_time_offset_ms is when the command ended (the shell showed its next
	// prompt), in milliseconds since the recording's start. 0 when the
	// recording ended first.
	EndTimeOffsetMs int64 `protobuf:"varint,2,opt,name=end_time_offset_ms,json=endTimeOffsetMs,proto3" json:"end_time_offset_ms,omitempty"`
	// started_at_ms is when the command was started as a Unix timestamp
	// (milliseconds): the recording's start plus time_offset_ms.
	StartedAtMs int64 `protobuf:"varint,3,opt,name=started_at_ms,json=startedAtMs,proto3" json:"started_at_ms,omitempty"`
	// command is the command line as it was shown on the terminal, without
	// the prompt and control sequences. A multi-line command (a
	// here-document or a line continued at the shell's continuation prompt)
	// is one command, its lines separated by "\n".
	Command string `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"`
	// output is the command's output as it was shown on the terminal, as text
	// lines separated by "\n", without control sequences: text overwritten on
	// screen (progress bars) appears in its final state; leading and trailing
	// blank lines are removed. At most max_output_bytes, cut at a UTF-8
	// character boundary.
	Output string `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"`
	// output_bytes is the size of the whole output.
	OutputBytes int64 `protobuf:"varint,6,opt,name=output_bytes,json=outputBytes,proto3" json:"output_bytes,omitempty"`
	// output_truncated is true when output was cut to max_output_bytes.
	OutputTruncated bool `protobuf:"varint,7,opt,name=output_truncated,json=outputTruncated,proto3" json:"output_truncated,omitempty"`
	// exit_code is the command's exit code, when the shell reported it
	// through shell integration.
	ExitCode *int32 `protobuf:"varint,8,opt,name=exit_code,json=exitCode,proto3,oneof" json:"exit_code,omitempty"`
	// fullscreen is true when the command used the terminal's alternate
	// screen (an editor, pager or other full-screen program); what it showed
	// there is not part of output.
	Fullscreen bool `protobuf:"varint,9,opt,name=fullscreen,proto3" json:"fullscreen,omitempty"`
	// contains filtered or unexported fields
}

RecordingCommand is one command run in a terminal recording.

func (*RecordingCommand) Descriptor deprecated added in v0.62.7

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

Deprecated: Use RecordingCommand.ProtoReflect.Descriptor instead.

func (*RecordingCommand) GetCommand added in v0.62.7

func (x *RecordingCommand) GetCommand() string

func (*RecordingCommand) GetEndTimeOffsetMs added in v0.62.7

func (x *RecordingCommand) GetEndTimeOffsetMs() int64

func (*RecordingCommand) GetExitCode added in v0.62.7

func (x *RecordingCommand) GetExitCode() int32

func (*RecordingCommand) GetFullscreen added in v0.62.7

func (x *RecordingCommand) GetFullscreen() bool

func (*RecordingCommand) GetOutput added in v0.62.7

func (x *RecordingCommand) GetOutput() string

func (*RecordingCommand) GetOutputBytes added in v0.62.7

func (x *RecordingCommand) GetOutputBytes() int64

func (*RecordingCommand) GetOutputTruncated added in v0.62.7

func (x *RecordingCommand) GetOutputTruncated() bool

func (*RecordingCommand) GetStartedAtMs added in v0.62.7

func (x *RecordingCommand) GetStartedAtMs() int64

func (*RecordingCommand) GetTimeOffsetMs added in v0.62.7

func (x *RecordingCommand) GetTimeOffsetMs() int64

func (*RecordingCommand) ProtoMessage added in v0.62.7

func (*RecordingCommand) ProtoMessage()

func (*RecordingCommand) ProtoReflect added in v0.62.7

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

func (*RecordingCommand) Reset added in v0.62.7

func (x *RecordingCommand) Reset()

func (*RecordingCommand) String added in v0.62.7

func (x *RecordingCommand) 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) 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 (RecordingFormat) String added in v0.62.5

func (x RecordingFormat) String() string

func (RecordingFormat) Type added in v0.62.5

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, 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.

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 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) 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 (RecordingType) String added in v0.62.5

func (x RecordingType) String() string

func (RecordingType) Type added in v0.62.5

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"`
	// open is true while the session has not ended (end_time is zero). A
	// session whose client stopped sending updates is ended by the server
	// after a timeout. Set on output; ignored on input.
	Open bool `protobuf:"varint,16,opt,name=open,proto3" json:"open,omitempty"`
	// contains filtered or unexported fields
}

Session represents a single SSH session record.

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetBlueprint

func (x *Session) GetBlueprint() string

func (*Session) GetBytesIn

func (x *Session) GetBytesIn() int64

func (*Session) GetBytesOut

func (x *Session) GetBytesOut() int64

func (*Session) GetClient

func (x *Session) GetClient() string

func (*Session) GetClientIp

func (x *Session) GetClientIp() string

func (*Session) GetEndTime

func (x *Session) GetEndTime() int64

func (*Session) GetExecRecordings added in v0.62.5

func (x *Session) GetExecRecordings() int32

func (*Session) GetK8ShelldVer

func (x *Session) GetK8ShelldVer() string

func (*Session) GetOpen added in v0.63.7

func (x *Session) GetOpen() bool

func (*Session) GetOperations added in v0.30.2

func (x *Session) GetOperations() []string

func (*Session) GetRecordings added in v0.62.5

func (x *Session) GetRecordings() []*RecordingRef

func (*Session) GetSessionId

func (x *Session) GetSessionId() string

func (*Session) GetStartTime

func (x *Session) GetStartTime() int64

func (*Session) GetUpdatedAt

func (x *Session) GetUpdatedAt() int64

func (*Session) GetUsername

func (x *Session) GetUsername() string

func (*Session) GetWorkspace

func (x *Session) GetWorkspace() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

type 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)
	// GetLastSessions returns the most recently started session of each given
	// workspace, at most one per WorkspaceRef, most recent first.
	// Workspaces are matched on the pair (username, workspace), and sessions
	// started before a ref's created_at are ignored, so a workspace recreated
	// under the same name does not inherit its predecessor's sessions.
	// Workspaces without a matching session are left out of the result.
	GetLastSessions(ctx context.Context, in *GetLastSessionsRequest, 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)
	// 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)
	// ListSessionRecordingCommands returns the commands run in a terminal
	// recording (RECORDING_TYPE_SHELL or RECORDING_TYPE_VSCODE_TERMINAL), in
	// the shape of exec recordings: each command line with its start and end
	// time and its output as plain text, in recording order and paged. Only
	// command lines entered at a shell prompt are commands; terminal control
	// sequences, resizes and what full-screen programs (vim, less, top, ...)
	// show are stripped. Commands are recognized from the shell's
	// bracketed-paste mode switches and shell-integration sequences (OSC 133,
	// VS Code OSC 633), and, for shells that emit neither, from Enter
	// keystrokes when the recording includes input. Output printed before the
	// first command (such as a login banner) is not returned. An unfinished
	// plain .cast recording yields the commands recorded so far; an unfinished
	// gzip recording returns FAILED_PRECONDITION. Other recording types return
	// INVALID_ARGUMENT. No access check is made: the caller must have
	// authorized access to the recording.
	ListSessionRecordingCommands(ctx context.Context, in *ListSessionRecordingCommandsRequest, opts ...grpc.CallOption) (*ListSessionRecordingCommandsResponse, 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.

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)
	// GetLastSessions returns the most recently started session of each given
	// workspace, at most one per WorkspaceRef, most recent first.
	// Workspaces are matched on the pair (username, workspace), and sessions
	// started before a ref's created_at are ignored, so a workspace recreated
	// under the same name does not inherit its predecessor's sessions.
	// Workspaces without a matching session are left out of the result.
	GetLastSessions(context.Context, *GetLastSessionsRequest) (*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)
	// 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
	// ListSessionRecordingCommands returns the commands run in a terminal
	// recording (RECORDING_TYPE_SHELL or RECORDING_TYPE_VSCODE_TERMINAL), in
	// the shape of exec recordings: each command line with its start and end
	// time and its output as plain text, in recording order and paged. Only
	// command lines entered at a shell prompt are commands; terminal control
	// sequences, resizes and what full-screen programs (vim, less, top, ...)
	// show are stripped. Commands are recognized from the shell's
	// bracketed-paste mode switches and shell-integration sequences (OSC 133,
	// VS Code OSC 633), and, for shells that emit neither, from Enter
	// keystrokes when the recording includes input. Output printed before the
	// first command (such as a login banner) is not returned. An unfinished
	// plain .cast recording yields the commands recorded so far; an unfinished
	// gzip recording returns FAILED_PRECONDITION. Other recording types return
	// INVALID_ARGUMENT. No access check is made: the caller must have
	// authorized access to the recording.
	ListSessionRecordingCommands(context.Context, *ListSessionRecordingCommandsRequest) (*ListSessionRecordingCommandsResponse, 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) Descriptor() ([]byte, []int)

Deprecated: Use Sessions.ProtoReflect.Descriptor instead.

func (*Sessions) GetSessions

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

func (*Sessions) ProtoMessage

func (*Sessions) ProtoMessage()

func (*Sessions) ProtoReflect

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

func (*Sessions) Reset

func (x *Sessions) Reset()

func (*Sessions) String

func (x *Sessions) String() string

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

func (UnimplementedRecordingServiceServer) StreamSftpRecording

func (UnimplementedRecordingServiceServer) StreamShellRecording

func (UnimplementedRecordingServiceServer) StreamTcpipRecording

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) GetLastSessions added in v0.63.7

func (UnimplementedSessionServiceServer) GetSessionRecording added in v0.62.5

func (UnimplementedSessionServiceServer) GetSessions

func (UnimplementedSessionServiceServer) GetSessionsQuerySchema added in v0.35.0

func (UnimplementedSessionServiceServer) GetVersionInfo added in v0.49.0

func (UnimplementedSessionServiceServer) ListSessionRecordingCommands added in v0.62.7

func (UnimplementedSessionServiceServer) ListSessionRecordings added in v0.62.5

func (UnimplementedSessionServiceServer) QuerySessions added in v0.35.0

func (UnimplementedSessionServiceServer) UpsertSession

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

type WorkspaceRef added in v0.63.7

type WorkspaceRef struct {

	// username is the workspace owner. Required.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// workspace is the workspace name. Required.
	Workspace string `protobuf:"bytes,2,opt,name=workspace,proto3" json:"workspace,omitempty"`
	// created_at is the workspace creation time as a Unix timestamp (seconds).
	// Sessions started before it are ignored. Zero means unknown: all sessions
	// of the (username, workspace) pair match.
	CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

WorkspaceRef identifies one workspace by its owner and name.

func (*WorkspaceRef) Descriptor deprecated added in v0.63.7

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

Deprecated: Use WorkspaceRef.ProtoReflect.Descriptor instead.

func (*WorkspaceRef) GetCreatedAt added in v0.63.7

func (x *WorkspaceRef) GetCreatedAt() int64

func (*WorkspaceRef) GetUsername added in v0.63.7

func (x *WorkspaceRef) GetUsername() string

func (*WorkspaceRef) GetWorkspace added in v0.63.7

func (x *WorkspaceRef) GetWorkspace() string

func (*WorkspaceRef) ProtoMessage added in v0.63.7

func (*WorkspaceRef) ProtoMessage()

func (*WorkspaceRef) ProtoReflect added in v0.63.7

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

func (*WorkspaceRef) Reset added in v0.63.7

func (x *WorkspaceRef) Reset()

func (*WorkspaceRef) String added in v0.63.7

func (x *WorkspaceRef) String() string

Jump to

Keyboard shortcuts

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