pub struct SandboxSpec {Show 14 fields
pub name: String,
pub image: RootfsSource,
pub resources: SandboxResources,
pub runtime: SandboxRuntimeOptions,
pub env: Vec<EnvVar>,
pub labels: BTreeMap<String, String>,
pub rlimits: Vec<Rlimit>,
pub mounts: Vec<VolumeMount>,
pub patches: Vec<Patch>,
pub network: NetworkSpec,
pub init: Option<HandoffInit>,
pub pull_policy: PullPolicy,
pub security_profile: SecurityProfile,
pub lifecycle: SandboxPolicy,
}Expand description
Backend-neutral sandbox task description.
This is the durable contract for fields that are already shared across backends. Local-only execution state such as resolved manifest digests, snapshot upper-layer paths, registry credentials, replace flags, and backend dispatch stays outside this type.
Fields§
§name: StringUnique sandbox name.
image: RootfsSourceRoot filesystem source.
resources: SandboxResourcesCPU and memory resources.
runtime: SandboxRuntimeOptionsGuest runtime options.
env: Vec<EnvVar>Environment variables visible to commands in the sandbox.
labels: BTreeMap<String, String>User-defined labels attached to the sandbox.
rlimits: Vec<Rlimit>Sandbox-wide resource limits inherited by guest processes.
mounts: Vec<VolumeMount>Volume mounts.
patches: Vec<Patch>Rootfs patches applied before VM start.
network: NetworkSpecNetwork specification.
init: Option<HandoffInit>Hand off PID 1 to a guest init binary after agentd setup.
pull_policy: PullPolicyPull policy for OCI images.
security_profile: SecurityProfileIn-guest security profile.
lifecycle: SandboxPolicySandbox lifecycle policy.
Trait Implementations§
Source§impl Clone for SandboxSpec
impl Clone for SandboxSpec
Source§fn clone(&self) -> SandboxSpec
fn clone(&self) -> SandboxSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more