Struct shiplift::container::Containers[][src]

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

Interface for docker containers

Api Reference

Implementations

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

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

Exports an interface for interacting with docker containers

pub async fn list(
    &self,
    opts: &ContainerListOptions
) -> Result<Vec<ContainerInfo>>
[src]

Lists the container instances on the docker host

Api Reference

pub fn get<S>(&self, name: S) -> Container<'docker> where
    S: Into<String>, 
[src]

Returns a reference to a set of operations available to a specific container instance

pub async fn create(
    &self,
    opts: &ContainerOptions
) -> Result<ContainerCreateInfo>
[src]

Returns a builder interface for creating a new container instance

Auto Trait Implementations

impl<'docker> !RefUnwindSafe for Containers<'docker>

impl<'docker> Send for Containers<'docker>

impl<'docker> Sync for Containers<'docker>

impl<'docker> Unpin for Containers<'docker>

impl<'docker> !UnwindSafe for Containers<'docker>

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.