pub struct CloudSandboxSpec {Show 14 fields
pub name: String,
pub image: CloudRootfsSource,
pub resources: CloudSandboxResources,
pub runtime: CloudSandboxRuntimeOptions,
pub env: Vec<EnvVar>,
pub labels: BTreeMap<String, String>,
pub rlimits: Vec<Rlimit>,
pub mounts: Vec<VolumeMount>,
pub patches: Vec<Patch>,
pub network: CloudNetworkSpec,
pub init: Option<HandoffInit>,
pub pull_policy: PullPolicy,
pub security_profile: SecurityProfile,
pub lifecycle: SandboxPolicy,
}Expand description
Cloud sandbox specification carried on create routes.
Fields§
§name: StringUnique sandbox name.
image: CloudRootfsSourceRoot filesystem source.
resources: CloudSandboxResourcesCPU, memory, and user-facing disk resources.
runtime: CloudSandboxRuntimeOptionsGuest runtime options (curated; platform-controlled fields omitted).
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: CloudNetworkSpecNetwork specification (curated; platform-controlled fields omitted).
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 CloudSandboxSpec
impl Clone for CloudSandboxSpec
Source§fn clone(&self) -> CloudSandboxSpec
fn clone(&self) -> CloudSandboxSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CloudSandboxSpec
impl Debug for CloudSandboxSpec
Source§impl Default for CloudSandboxSpec
impl Default for CloudSandboxSpec
Source§fn default() -> CloudSandboxSpec
fn default() -> CloudSandboxSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudSandboxSpecwhere
CloudSandboxSpec: Default,
impl<'de> Deserialize<'de> for CloudSandboxSpecwhere
CloudSandboxSpec: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SandboxSpec> for CloudSandboxSpec
impl From<SandboxSpec> for CloudSandboxSpec
Source§fn from(spec: SandboxSpec) -> Self
fn from(spec: SandboxSpec) -> Self
Converts to this type from the input type.
Source§impl Serialize for CloudSandboxSpec
impl Serialize for CloudSandboxSpec
Source§impl TryFrom<CloudSandboxSpec> for SandboxSpec
impl TryFrom<CloudSandboxSpec> for SandboxSpec
Source§type Error = TypesError
type Error = TypesError
The type returned in the event of a conversion error.
Source§fn try_from(spec: CloudSandboxSpec) -> TypesResult<Self>
fn try_from(spec: CloudSandboxSpec) -> TypesResult<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CloudSandboxSpec
impl RefUnwindSafe for CloudSandboxSpec
impl Send for CloudSandboxSpec
impl Sync for CloudSandboxSpec
impl Unpin for CloudSandboxSpec
impl UnsafeUnpin for CloudSandboxSpec
impl UnwindSafe for CloudSandboxSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more