[][src]Struct shipliftExp::Images

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

Interface for docker images

Methods

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(
    &self,
    opts: &BuildOptions
) -> impl Stream<Item = Value, Error = Error>
[src]

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

pub fn list(
    &self,
    opts: &ImageListOptions
) -> impl Future<Item = Vec<ImageRep>, Error = Error>
[src]

Lists the docker images on the current docker host

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

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

pub fn search(
    &self,
    term: &str
) -> impl Future<Item = Vec<SearchResult>, Error = Error>
[src]

Search for docker images by term

pub fn pull(
    &self,
    opts: &PullOptions
) -> impl Stream<Item = Value, Error = Error>
[src]

Pull and create a new docker images from an existing image

pub fn export(
    &self,
    names: Vec<&str>
) -> impl Stream<Item = Vec<u8>, Error = Error>
[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 = Value, Error = Error>
[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> Send for Images<'a>

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

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

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

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

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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