Struct shiplift::image::Image[][src]

pub struct Image<'docker> { /* fields omitted */ }

Interface for accessing and manipulating a named docker image

Api Reference

Implementations

impl<'docker> Image<'docker>[src]

pub fn new<S>(docker: &'docker Docker, name: S) -> Self where
    S: Into<String>, 
[src]

Exports an interface for operations that may be performed against a named image

pub async fn inspect(&self) -> Result<ImageDetails>[src]

Inspects a named image’s details

Api Reference

pub async fn history(&self) -> Result<Vec<History>>[src]

Lists the history of the images set of changes

Api Reference

pub async fn delete(&self) -> Result<Vec<Status>>[src]

Deletes an image

Api Reference

pub fn export(&self) -> impl Stream<Item = Result<Vec<u8>>> + Unpin + 'docker[src]

Export this image to a tarball

Api Reference

pub async fn tag(&self, opts: &TagOptions) -> Result<()>[src]

Adds a tag to an image

Api Reference

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.