pub struct NodeComputeVolumes { /* private fields */ }Expand description
The node’s ComputeVolumes: list +
reclaim persistent volumes. Backs GET /api/compute/volumes +
DELETE /api/compute/volumes/{name} (admin-scoped). Lists every
volume-capable backend’s on-node volumes, flags which are still referenced by a
registered workload’s active spec (in use vs orphaned), and refuses to remove
an in-use volume unless forced — so compute rm <workload> (which unregisters
it, then the reconcile loop stops the replica) is the safe precondition for
reclaiming its volume.
Implementations§
Source§impl NodeComputeVolumes
impl NodeComputeVolumes
Sourcepub fn new(backends: BackendRegistry, deploy: DeployStore) -> Self
pub fn new(backends: BackendRegistry, deploy: DeployStore) -> Self
Build over this node’s compute backends + the control-plane store.
Trait Implementations§
Source§impl ComputeVolumes for NodeComputeVolumes
impl ComputeVolumes for NodeComputeVolumes
Source§fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<VolumeStatus>, VolumeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<VolumeStatus>, VolumeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List every persistent volume on this node, each flagged with whether a
registered workload’s active spec still references it (
in_use).Source§fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
force: bool,
) -> Pin<Box<dyn Future<Output = Result<bool, VolumeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
force: bool,
) -> Pin<Box<dyn Future<Output = Result<bool, VolumeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove the backing for volume
name. Refuses with VolumeError::InUse
when a registered workload’s spec still references it, unless force.
Returns whether the volume existed (false ⇒ 404 at the API).Auto Trait Implementations§
impl !RefUnwindSafe for NodeComputeVolumes
impl !UnwindSafe for NodeComputeVolumes
impl Freeze for NodeComputeVolumes
impl Send for NodeComputeVolumes
impl Sync for NodeComputeVolumes
impl Unpin for NodeComputeVolumes
impl UnsafeUnpin for NodeComputeVolumes
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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