pub struct CloudSandboxSpec {
pub name: String,
pub runtime: CloudSandboxRuntimeOptions,
pub env: Vec<EnvVar>,
pub labels: BTreeMap<String, String>,
pub rlimits: Vec<CloudRlimit>,
pub mounts: Vec<CloudVolumeMount>,
pub network: CloudNetworkSpec,
pub init: Option<HandoffInit>,
pub security_profile: SecurityProfile,
pub lifecycle: SandboxPolicy,
}Expand description
Settings shared by every cloud sandbox creation source.
Fields§
§name: StringUnique sandbox name.
runtime: CloudSandboxRuntimeOptionsGuest 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<CloudRlimit>Sandbox-wide resource limits inherited by guest processes.
mounts: Vec<CloudVolumeMount>Volume mounts.
network: CloudNetworkSpecNetwork specification.
init: Option<HandoffInit>Hand off PID 1 to a guest init binary after agentd setup.
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
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