pub struct DockerDetector { /* private fields */ }Expand description
Docker availability detector with caching.
Implementations§
Source§impl DockerDetector
impl DockerDetector
Sourcepub fn new() -> DockerDetector
pub fn new() -> DockerDetector
Create a new DockerDetector instance.
Sourcepub async fn check_availability(&self, force_refresh: bool) -> DockerStatus
pub async fn check_availability(&self, force_refresh: bool) -> DockerStatus
Check Docker availability, using cache if valid.
Sourcepub async fn is_image_available(&self, image: &str) -> bool
pub async fn is_image_available(&self, image: &str) -> bool
Check if a Docker image is available locally.
Sourcepub async fn pull_image(&self, image: &str) -> DockerPullResult
pub async fn pull_image(&self, image: &str) -> DockerPullResult
Pull a Docker image from the registry.
Trait Implementations§
Source§impl Default for DockerDetector
impl Default for DockerDetector
Source§fn default() -> DockerDetector
fn default() -> DockerDetector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DockerDetector
impl !RefUnwindSafe for DockerDetector
impl Send for DockerDetector
impl Sync for DockerDetector
impl Unpin for DockerDetector
impl UnsafeUnpin for DockerDetector
impl !UnwindSafe for DockerDetector
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
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