pub struct DockerCleanupEngine;Expand description
Verified Docker image-removal and prune coordinator.
Implementations§
Source§impl DockerCleanupEngine
impl DockerCleanupEngine
Sourcepub async fn inspect_image(
&self,
client: &dyn DockerCleanupClient,
host: &HostRecord,
reference: &str,
cancellation: &CancellationToken,
) -> InfraResult<ImageRemovalFingerprint>
pub async fn inspect_image( &self, client: &dyn DockerCleanupClient, host: &HostRecord, reference: &str, cancellation: &CancellationToken, ) -> InfraResult<ImageRemovalFingerprint>
Resolves one image reference into a stable local identity.
Sourcepub async fn inspect_prune(
&self,
client: &dyn DockerCleanupClient,
host: &HostRecord,
target: DockerPruneTarget,
cancellation: &CancellationToken,
) -> InfraResult<DockerPruneFingerprint>
pub async fn inspect_prune( &self, client: &dyn DockerCleanupClient, host: &HostRecord, target: DockerPruneTarget, cancellation: &CancellationToken, ) -> InfraResult<DockerPruneFingerprint>
Captures the deterministic inventory relevant to one prune target.
Sourcepub async fn remove_image(
&self,
client: &dyn DockerCleanupClient,
host: &HostRecord,
request: &ImageRemovalRequest,
cancellation: &CancellationToken,
) -> MutationResult<ImageRemovalOutcome>
pub async fn remove_image( &self, client: &dyn DockerCleanupClient, host: &HostRecord, request: &ImageRemovalRequest, cancellation: &CancellationToken, ) -> MutationResult<ImageRemovalOutcome>
Removes one exact planned image and verifies it is absent afterward.
Sourcepub async fn prune(
&self,
client: &dyn DockerCleanupClient,
host: &HostRecord,
request: &DockerPruneRequest,
cancellation: &CancellationToken,
) -> MutationResult<DockerPruneOutcome>
pub async fn prune( &self, client: &dyn DockerCleanupClient, host: &HostRecord, request: &DockerPruneRequest, cancellation: &CancellationToken, ) -> MutationResult<DockerPruneOutcome>
Prunes one exact planned inventory and verifies reported identities are gone.
Trait Implementations§
Source§impl Clone for DockerCleanupEngine
impl Clone for DockerCleanupEngine
Source§fn clone(&self) -> DockerCleanupEngine
fn clone(&self) -> DockerCleanupEngine
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 DockerCleanupEngine
impl Debug for DockerCleanupEngine
Source§impl Default for DockerCleanupEngine
impl Default for DockerCleanupEngine
Source§fn default() -> DockerCleanupEngine
fn default() -> DockerCleanupEngine
Returns the “default value” for a type. Read more
impl Copy for DockerCleanupEngine
Auto Trait Implementations§
impl Freeze for DockerCleanupEngine
impl RefUnwindSafe for DockerCleanupEngine
impl Send for DockerCleanupEngine
impl Sync for DockerCleanupEngine
impl Unpin for DockerCleanupEngine
impl UnsafeUnpin for DockerCleanupEngine
impl UnwindSafe for DockerCleanupEngine
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