pub struct Image<'docker> { /* private fields */ }
Expand description
Interface for accessing and manipulating a named docker image
Implementations§
Source§impl<'docker> Image<'docker>
impl<'docker> Image<'docker>
Sourcepub fn new<S>(docker: &'docker Docker, name: S) -> Self
pub fn new<S>(docker: &'docker Docker, name: S) -> Self
Exports an interface for operations that may be performed against a named image
Sourcepub async fn inspect(&self) -> Result<ImageDetails>
pub async fn inspect(&self) -> Result<ImageDetails>
Inspects a named image’s details
Sourcepub async fn history(&self) -> Result<Vec<History>>
pub async fn history(&self) -> Result<Vec<History>>
Lists the history of the images set of changes
Sourcepub fn export(&self) -> impl Stream<Item = Result<Vec<u8>>> + Unpin + 'docker
pub fn export(&self) -> impl Stream<Item = Result<Vec<u8>>> + Unpin + 'docker
Export this image to a tarball
Sourcepub async fn tag(&self, opts: &TagOptions) -> Result<()>
pub async fn tag(&self, opts: &TagOptions) -> Result<()>
Adds a tag to an image
Auto Trait Implementations§
impl<'docker> Freeze for Image<'docker>
impl<'docker> !RefUnwindSafe for Image<'docker>
impl<'docker> Send for Image<'docker>
impl<'docker> Sync for Image<'docker>
impl<'docker> Unpin for Image<'docker>
impl<'docker> !UnwindSafe for Image<'docker>
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