[][src]Struct shiplift::Images

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

Interface for docker images

Implementations

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

pub fn new(docker: &'a Docker) -> Images<'a>[src]

Exports an interface for interacting with docker images

pub fn build(
    &'a self,
    opts: &'a BuildOptions
) -> impl Stream<Item = Result<Value>> + Unpin + 'a
[src]

Builds a new image build by reading a Dockerfile in a target directory

pub async fn list<'_, '_>(
    &'_ self,
    opts: &'_ ImageListOptions
) -> Result<Vec<ImageRep>>
[src]

Lists the docker images on the current docker host

pub fn get(&self, name: &'a str) -> Image<'a>[src]

Returns a reference to a set of operations available for a named image

pub async fn search<'_, '_>(
    &'_ self,
    term: &'_ str
) -> Result<Vec<SearchResult>>
[src]

Search for docker images by term

pub fn pull(
    &self,
    opts: &PullOptions
) -> impl Stream<Item = Result<Value>> + Unpin + 'a
[src]

Pull and create a new docker images from an existing image

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

exports a collection of named images, either by name, name:tag, or image id, into a tarball

pub fn import(
    self,
    tarball: Box<dyn Read>
) -> impl Stream<Item = Result<Value>> + Unpin + 'a
[src]

imports an image or set of images from a given tarball source source can be uncompressed on compressed via gzip, bzip2 or xz

Auto Trait Implementations

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

impl<'a> Send for Images<'a>

impl<'a> Sync for Images<'a>

impl<'a> Unpin for Images<'a>

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

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, 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.