pub enum NamespaceTransport {
VirtioFs {
socket_path: PathBuf,
mount_tag: String,
},
BindMount {
target: PathBuf,
},
HostImports,
NineP {
endpoint: String,
aname: String,
plane: String,
mounter: String,
mount_path: PathBuf,
},
}Expand description
How a composed Namespace should be attached to a booted guest.
Designed to fit Kata’s existing virtio-fs/ShareFs delivery today, and to
be extensible to #653’s local-FUSE-mount serve mode once it lands (a
BindMount target can point at a FUSE mountpoint just as well as a plain
directory — this enum does not need to change for that).
Variants§
VirtioFs
Serve the namespace over a vhost-user-fs (virtio-fs) socket. The guest
mounts it via a ShareFs/virtio-fs device tagged mount_tag. This is
Kata’s transport.
Fields
BindMount
The namespace is (or will be) materialized at a host directory the guest can see directly — a plain bind-mount for backends that don’t need FUSE (e.g. nspawn), or a #653 local-FUSE mountpoint once that lands.
HostImports
Pass mount references directly into the guest’s in-process environment rather than over any wire transport — the wasm host-imports path (no separate guest OS to mount into).
NineP
Deliver the composed namespace over authenticated network 9P and mount it
in a scheduler-placed Kubernetes pod through csi.hyprstream.io (#793).
endpoint is the dial-time carrier endpoint selected by the operator
(normally iroh/QUIC-WebTransport cross-node, vsock for Kata, UDS only
co-located). The CSI node plugin mints the scoped #862 mount ticket at
NodePublishVolume via Kubernetes CSI tokenRequests, so no bearer
ticket is persisted in the PodSpec. aname is the Plan 9 attach name
selecting the authorized export root; filesystem paths are walked after
attach inside that root.
Trait Implementations§
Source§impl Clone for NamespaceTransport
impl Clone for NamespaceTransport
Source§fn clone(&self) -> NamespaceTransport
fn clone(&self) -> NamespaceTransport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for NamespaceTransport
impl RefUnwindSafe for NamespaceTransport
impl Send for NamespaceTransport
impl Sync for NamespaceTransport
impl Unpin for NamespaceTransport
impl UnsafeUnpin for NamespaceTransport
impl UnwindSafe for NamespaceTransport
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more