Expand description
Shared task and wire contract types for microsandbox.
Structs§
- Cloud
Create Sandbox Request - Wire shape of a cloud sandbox create request body.
- Cloud
Error Body - Wire shape of the typed error body returned by cloud APIs on 4xx/5xx responses.
- Cloud
Error Details - Nested cloud API error details.
- Cloud
Message Response - Wire shape of the message response returned by mutation endpoints.
- Cloud
Paginated - Wire shape of paginated list responses.
- Cloud
Sandbox - Wire shape of the cloud sandbox response returned by sandbox endpoints.
- EnvVar
- Environment variable entry.
- Handoff
Init - Fully-assembled handoff-init specification.
- Mount
Options - Guest mount behavior shared by every volume mount kind.
- Named
Volume Create - Creation metadata for sandbox-time named volume provisioning.
- Network
Spec - Complete network specification for a sandbox.
- OciRootfs
Source - OCI root filesystem source.
- Published
Port Spec - A published port mapping between host and guest.
- Rlimit
- A POSIX resource limit.
- Sandbox
Policy - Sandbox lifecycle policy.
- Sandbox
Resources - CPU and memory resources for a sandbox.
- Sandbox
Runtime Options - Guest runtime options for a sandbox.
- Sandbox
Spec - Backend-neutral sandbox task description.
- Snapshot
Spec - Inputs to create a snapshot.
- Volume
Spec - Configuration for creating a named volume.
Enums§
- Cloud
Sandbox Status - Sandbox lifecycle status returned by the cloud control plane.
- Disk
Image Format - Disk image format for virtio-blk root filesystems and volume mounts.
- Host
Permissions - Host permission propagation policy for a virtiofs-backed volume mount.
- LogSource
- Source tag on a captured log entry.
- Named
Volume Mode - Sandbox-time behavior for a named volume mount.
- Patch
- Rootfs patch applied before VM startup.
- Port
Protocol - Transport protocol for a published port.
- Pull
Policy - Controls when an OCI registry is contacted for manifest freshness.
- Rlimit
Resource - POSIX resource limit identifiers.
- Rootfs
Source - Root filesystem source for a sandbox.
- Sandbox
LogLevel - Runtime log verbosity for sandbox specs.
- Security
Profile - Sandbox-level in-guest security profile.
- Snapshot
Destination - Where to place a new snapshot artifact.
- Stat
Virtualization - Stat virtualization policy for a virtiofs-backed volume mount.
- Types
Error - Errors returned by shared microsandbox contract helpers.
- Volume
Kind - Storage kind for a named volume.
- Volume
Mount - A volume mount specification for a sandbox.
Constants§
- DEFAULT_
METRICS_ SAMPLE_ INTERVAL_ MS - Default metrics sampling interval in milliseconds.
- DEFAULT_
SANDBOX_ CPUS - Default number of virtual CPUs in a sandbox specification.
- DEFAULT_
SANDBOX_ MEMORY_ MIB - Default guest memory in MiB in a sandbox specification.
- MAX_
HOSTNAME_ BYTES - Maximum UTF-8 byte length for a guest hostname (Linux
__NEW_UTS_LEN). - MAX_
SANDBOX_ NAME_ BYTES - Maximum UTF-8 byte length for a sandbox name.
Functions§
- hostname_
from_ sandbox_ name - Derive a guest hostname from a sandbox name while fitting within
MAX_HOSTNAME_BYTES. - validate_
hostname - Validate an optional explicit guest hostname before it is forwarded to the guest agent.
- validate_
sandbox_ name - Validate that a sandbox name is safe: alphanumeric / dot / hyphen / underscore, 1..=128 bytes, and must start alphanumeric.
Type Aliases§
- Types
Result - The result type for shared microsandbox contract operations.