Expand description
Unified backend abstraction for sandbox execution.
This module provides a common interface for all sandbox backends:
- Docker/Podman containers
- Firecracker microVMs
- Apple Containers (macOS 26+)
- Hyperlight WebAssembly (Linux with KVM)
Re-exports§
pub use docker::ContainerRuntime;pub use docker::DockerSandbox;pub use firecracker::FirecrackerSandbox;pub use hyperlight::HyperlightSandbox;pub use kubernetes::KubernetesSandbox;pub use nomad::NomadSandbox;
Modules§
- docker
- Docker/Podman container backend implementing the Sandbox trait.
- firecracker
- Firecracker microVM backend implementing the Sandbox trait.
- hyperlight
- Hyperlight WebAssembly backend implementing the Sandbox trait.
- kubernetes
- Kubernetes backend implementing the Sandbox trait.
- kubernetes_
operator - Kubernetes CRD types and operator controller for AgentSandbox resources.
- kubernetes_
pool - Kubernetes warm pool manager.
- nomad
- HashiCorp Nomad backend implementing the Sandbox trait.
- nomad_
pool - Nomad warm pool manager.
Structs§
- Exec
Options - Options for executing a command in a sandbox
- Exec
Result - Result of executing a command in a sandbox
- File
Injection - File to inject into sandbox at startup
- Port
Mapping - A port mapping from host to container
- Sandbox
Config - Configuration for starting a sandbox
Enums§
- Backend
Type - Backend type identifier
- Port
Protocol - Protocol for port mappings
Traits§
- Sandbox
- Unified sandbox interface for all backends
Functions§
- backend_
available - Check if a specific backend is available
- create_
sandbox - Create a sandbox for the specified backend
- create_
sandbox_ with_ config - Create a sandbox with orchestrator configuration
- detect_
best_ backend - Detect the best available backend for the current platform
- validate_
sandbox_ path - Validate a path for sandbox file operations