pub struct SandboxModificationPatch {
pub cpus: Option<u8>,
pub max_cpus: Option<u8>,
pub memory_mib: Option<u32>,
pub max_memory_mib: Option<u32>,
pub env: Vec<EnvVar>,
pub env_remove: Vec<String>,
pub labels: Vec<(String, String)>,
pub labels_remove: Vec<String>,
pub workdir: Option<String>,
pub secrets: Vec<SecretModificationPatch>,
pub secrets_remove: Vec<String>,
}Expand description
A requested sandbox modification.
This type is serializable so SDKs and the CLI can share one canonical
contract. The only field that may carry raw secret material is the
per-secret value inside SecretModificationPatch; plans derived from
a patch are always value-free.
Fields§
§cpus: Option<u8>Desired effective vCPU count.
max_cpus: Option<u8>Desired boot-time maximum possible vCPU count.
memory_mib: Option<u32>Desired effective guest memory in MiB.
max_memory_mib: Option<u32>Desired boot-time maximum hotpluggable memory in MiB.
env: Vec<EnvVar>Environment variables to set for future execs.
env_remove: Vec<String>Environment variable keys to remove.
labels: Vec<(String, String)>Labels to set.
labels_remove: Vec<String>Label keys to remove.
workdir: Option<String>Desired working directory for future execs.
secrets: Vec<SecretModificationPatch>Desired secret specs, keyed by secret name. The planner diffs each spec against the existing config to infer what changes.
secrets_remove: Vec<String>Secret names to remove. Removal is explicit: absence of a name from
secrets never means removal.
Trait Implementations§
Source§impl Clone for SandboxModificationPatch
impl Clone for SandboxModificationPatch
Source§fn clone(&self) -> SandboxModificationPatch
fn clone(&self) -> SandboxModificationPatch
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more