[−][src]Struct shipliftExp::Images
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]
&self,
opts: &BuildOptions
) -> impl Stream<Item = Value, Error = Error>
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]
&self,
opts: &ImageListOptions
) -> impl Future<Item = Vec<ImageRep>, Error = Error>
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]
&self,
term: &str
) -> impl Future<Item = Vec<SearchResult>, Error = Error>
Search for docker images by term
pub fn pull(
&self,
opts: &PullOptions
) -> impl Stream<Item = Value, Error = Error>
[src]
&self,
opts: &PullOptions
) -> impl Stream<Item = Value, Error = Error>
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]
&self,
names: Vec<&str>
) -> impl Stream<Item = Vec<u8>, Error = Error>
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]
self,
tarball: Box<dyn Read>
) -> impl Stream<Item = Value, Error = Error>
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,