pub struct DockerCli { /* private fields */ }Implementations§
Source§impl DockerCli
impl DockerCli
pub fn new() -> Self
pub const fn with_runner(runner: Box<dyn CommandRunner>) -> Self
pub fn build_image( &self, context_dir: &Path, dockerfile: &Path, image: &str, ) -> CloudResult<()>
pub fn login( &self, registry: &str, username: &str, token: &str, ) -> CloudResult<()>
pub fn push(&self, image: &str) -> CloudResult<()>
pub fn output(&self, args: &[&str]) -> Result<Output>
pub fn status(&self, args: &[&str]) -> Result<ExitStatus>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DockerCli
impl !UnwindSafe for DockerCli
impl Freeze for DockerCli
impl Send for DockerCli
impl Sync for DockerCli
impl Unpin for DockerCli
impl UnsafeUnpin for DockerCli
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<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