pub enum HostdRequest {
StartInstance {
tenant_id: String,
pool_id: String,
instance_id: String,
},
StopInstance {
tenant_id: String,
pool_id: String,
instance_id: String,
},
SleepInstance {
tenant_id: String,
pool_id: String,
instance_id: String,
force: bool,
drain_timeout_secs: Option<u64>,
},
WakeInstance {
tenant_id: String,
pool_id: String,
instance_id: String,
},
DestroyInstance {
tenant_id: String,
pool_id: String,
instance_id: String,
wipe_volumes: bool,
},
SetupNetwork {
tenant_id: String,
net: TenantNet,
},
TeardownNetwork {
tenant_id: String,
net: TenantNet,
},
Ping,
}Expand description
Request from agentd to hostd (privileged executor).
Each variant maps to exactly one privileged operation. The agentd (unprivileged) decides WHAT to do; hostd (privileged) decides HOW.
Variants§
StartInstance
Start an existing instance (TAP, cgroup, jailer, FC launch).
StopInstance
Stop a running instance (kill FC, teardown cgroup, TAP).
SleepInstance
Snapshot and suspend an instance.
Fields
WakeInstance
Restore an instance from snapshot.
DestroyInstance
Destroy an instance and optionally wipe volumes.
SetupNetwork
Create per-tenant bridge and NAT rules.
TeardownNetwork
Tear down per-tenant bridge and NAT rules.
Ping
Health check.
Trait Implementations§
Source§impl Clone for HostdRequest
impl Clone for HostdRequest
Source§fn clone(&self) -> HostdRequest
fn clone(&self) -> HostdRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 HostdRequest
impl Debug for HostdRequest
Source§impl<'de> Deserialize<'de> for HostdRequest
impl<'de> Deserialize<'de> for HostdRequest
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 HostdRequest
impl RefUnwindSafe for HostdRequest
impl Send for HostdRequest
impl Sync for HostdRequest
impl Unpin for HostdRequest
impl UnsafeUnpin for HostdRequest
impl UnwindSafe for HostdRequest
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