[][src]Struct shiplift::Image

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

Interface for accessing and manipulating a named docker image


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

pub fn new<S>(docker: &'a Docker, name: S) -> Self where
    S: Into<Cow<'a, str>>, 

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

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

Lists the history of the images set of changes

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

Deletes an image

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

Export this image to a tarball

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

Adds a tag to an image

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Image<'a>

impl<'a> Send for Image<'a>

impl<'a> Sync for Image<'a>

impl<'a> Unpin for Image<'a>

impl<'a> !UnwindSafe for Image<'a>

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.