Module payload

Source
Expand description

Request and response payload definitions for the microsandbox server.

This module defines the data structures for:

  • API request payloads for sandbox operations
  • API response payloads for operation results
  • Error response structures and types
  • Status message formatting

The module implements:

  • Request/response serialization and deserialization
  • Structured error responses with type categorization
  • Success message formatting for sandbox operations
  • Detailed error information handling

Structs§

JsonRpcError
JSON-RPC error structure
JsonRpcRequest
JSON-RPC request structure
JsonRpcResponse
JSON-RPC response structure
RegularMessageResponse
Response type for regular message responses
SandboxCommandExecuteParams
Request parameters for executing a shell command
SandboxCommandGetOutputParams
Request parameters for retrieving output from a previous command execution
SandboxConfig
Configuration for a sandbox Similar to microsandbox-core’s Sandbox but with optional fields for update operations
SandboxConfigResponse
Sandbox configuration response
SandboxReplGetOutputParams
Request parameters for retrieving output from a previous REPL execution
SandboxReplRunParams
Request parameters for executing code in a REPL environment
SandboxStartParams
Request payload for starting a sandbox
SandboxStatus
Status of an individual sandbox
SandboxStatusParams
Request payload for getting sandbox status
SandboxStatusResponse
Sandbox status response
SandboxStopParams
Request payload for stopping a sandbox
SystemStatusResponse
System status response

Constants§

JSONRPC_VERSION
JSON-RPC version - always “2.0”