Struct shiplift::container::Containers [−][src]
pub struct Containers<'docker> { /* fields omitted */ }
Interface for docker containers
Implementations
impl<'docker> Containers<'docker>
[src]
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]
&self,
opts: &ContainerListOptions
) -> Result<Vec<ContainerInfo>>
Lists the container instances on the docker host
pub fn get<S>(&self, name: S) -> Container<'docker> where
S: Into<String>,
[src]
S: Into<String>,
Returns a reference to a set of operations available to a specific container instance
pub async fn create(
&self,
opts: &ContainerOptions
) -> Result<ContainerCreateInfo>
[src]
&self,
opts: &ContainerOptions
) -> Result<ContainerCreateInfo>
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> Instrument for T
[src]
impl<T> Instrument for T
[src]