pub enum CloudRootfsSource {
Bind(PathBuf),
Oci {
reference: String,
},
DiskImage {
path: PathBuf,
format: DiskImageFormat,
fstype: Option<String>,
},
}Expand description
Cloud root filesystem source.
Mirrors the domain RootfsSource JSON shape, but keeps writable-disk
sizing out of the image payload. Cloud callers express that intent through
CloudSandboxResources::disk_size_mib; conversion to the domain spec
attaches it to OCI rootfs.
Variants§
Bind(PathBuf)
Use a host directory directly as the root filesystem.
Oci
Use an OCI image reference with an EROFS lower and ext4 overlay upper.
DiskImage
Use a disk image file as the root filesystem via virtio-blk.
Implementations§
Trait Implementations§
Source§impl Clone for CloudRootfsSource
impl Clone for CloudRootfsSource
Source§fn clone(&self) -> CloudRootfsSource
fn clone(&self) -> CloudRootfsSource
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 CloudRootfsSource
impl Debug for CloudRootfsSource
Source§impl Default for CloudRootfsSource
impl Default for CloudRootfsSource
Source§impl<'de> Deserialize<'de> for CloudRootfsSource
impl<'de> Deserialize<'de> for CloudRootfsSource
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 CloudRootfsSource
impl RefUnwindSafe for CloudRootfsSource
impl Send for CloudRootfsSource
impl Sync for CloudRootfsSource
impl Unpin for CloudRootfsSource
impl UnsafeUnpin for CloudRootfsSource
impl UnwindSafe for CloudRootfsSource
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