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§
- Json
RpcError - JSON-RPC error structure
- Json
RpcRequest - JSON-RPC request structure
- Json
RpcResponse - JSON-RPC response structure
- Regular
Message Response - Response type for regular message responses
- Sandbox
Command Execute Params - Request parameters for executing a shell command
- Sandbox
Command GetOutput Params - Request parameters for retrieving output from a previous command execution
- Sandbox
Config - Configuration for a sandbox Similar to microsandbox-core’s Sandbox but with optional fields for update operations
- Sandbox
Config Response - Sandbox configuration response
- Sandbox
Repl GetOutput Params - Request parameters for retrieving output from a previous REPL execution
- Sandbox
Repl RunParams - Request parameters for executing code in a REPL environment
- Sandbox
Start Params - Request payload for starting a sandbox
- Sandbox
Status - Status of an individual sandbox
- Sandbox
Status Params - Request payload for getting sandbox status
- Sandbox
Status Response - Sandbox status response
- Sandbox
Stop Params - Request payload for stopping a sandbox
- System
Status Response - System status response
Constants§
- JSONRPC_
VERSION - JSON-RPC version - always “2.0”