Struct shiplift::Images[][src]

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

Interface for docker images

Implementations

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

pub fn new(docker: &'docker Docker) -> Self[src]

Exports an interface for interacting with docker images

pub fn build(
    &self,
    opts: &BuildOptions
) -> impl Stream<Item = Result<Value>> + Unpin + 'docker
[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<S>(&self, name: S) -> Image<'docker> where
    S: Into<String>, 
[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 + 'docker
[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>>> + 'docker
[src]

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

pub fn import<R>(
    self,
    tarball: R
) -> impl Stream<Item = Result<Value>> + Unpin + 'docker where
    R: Read + Send + 'docker, 
[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<'docker> !RefUnwindSafe for Images<'docker>[src]

impl<'docker> Send for Images<'docker>[src]

impl<'docker> Sync for Images<'docker>[src]

impl<'docker> Unpin for Images<'docker>[src]

impl<'docker> !UnwindSafe for Images<'docker>[src]

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.