pub enum RootSource {
Image(String),
Tar(String),
Rootfs(String),
}Expand description
The source of a workload’s root filesystem. Each variant is one concrete artifact form, matched 1:1 to the backends that accept it — modelled explicitly rather than overloading one string, because an image reference, a tar archive, and a rootfs block image are genuinely different things and a mismatch should be a typed error.
Variants§
Image(String)
An OCI image reference (repo:tag or a digest) a runtime pulls from a
registry; its unpacked layers become the root filesystem. Backends: docker,
cloudflare. ComputeSpec::kernel does not apply.
Tar(String)
A tar rootfs archive — a blob hash in the shared store — that the node
stages and unpacks into a directory to run. Backend: the native container
runtime. ComputeSpec::kernel does not apply.
Rootfs(String)
A rootfs filesystem image — a blob hash in the shared store — that the node
stages and attaches as the guest’s root block device. The filesystem is
opaque to boatramp: the guest kernel mounts whatever it finds (ext4 by
default, since compute build uses mke2fs, but any kernel-supported
filesystem works). Backend: the firecracker micro-VM, which pairs it with
ComputeSpec::kernel.
Implementations§
Source§impl RootSource
impl RootSource
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
The underlying reference string (an image reference for RootSource::Image,
a blob hash for RootSource::Tar / RootSource::Rootfs).
Trait Implementations§
Source§impl Clone for RootSource
impl Clone for RootSource
Source§fn clone(&self) -> RootSource
fn clone(&self) -> RootSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RootSource
impl Debug for RootSource
Source§impl<'de> Deserialize<'de> for RootSource
impl<'de> Deserialize<'de> for RootSource
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RootSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RootSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for RootSource
Source§impl PartialEq for RootSource
impl PartialEq for RootSource
Source§impl Serialize for RootSource
impl Serialize for RootSource
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for RootSource
Auto Trait Implementations§
impl Freeze for RootSource
impl RefUnwindSafe for RootSource
impl Send for RootSource
impl Sync for RootSource
impl Unpin for RootSource
impl UnsafeUnpin for RootSource
impl UnwindSafe for RootSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.