Skip to main content

Module exec

Module exec 

Source
Expand description

Exec types for host-to-guest command execution.

Shared request/response types used by both the guest exec server and the host exec client.

Structs§

ExecChunk
A chunk of streaming output from a running command.
ExecExit
Final exit notification from a streaming exec.
ExecMetrics
Metrics collected during command execution.
ExecOutput
Output from an executed command.
ExecRequest
Request to execute a command in the guest.
FileRequest
File transfer request for upload/download between host and guest.
FileResponse
File transfer response.

Enums§

ExecEvent
A streaming exec event — either a chunk of output or the final exit.
FileOp
File transfer operation type.
StreamType
Which output stream a chunk belongs to.

Constants§

DEFAULT_EXEC_TIMEOUT_NS
Default exec timeout: 5 seconds.
FRAME_EXEC_CHUNK
Frame type byte for streaming exec chunks.
FRAME_EXEC_EXIT
Frame type byte for streaming exec exit.
MAX_OUTPUT_BYTES
Maximum output size per stream (stdout/stderr): 16 MiB.