pub struct Containers<'a> { /* private fields */ }Expand description
Interface for docker containers
Implementations§
Source§impl<'a> Containers<'a>
impl<'a> Containers<'a>
Sourcepub fn new(docker: &'a Docker) -> Containers<'a>
pub fn new(docker: &'a Docker) -> Containers<'a>
Exports an interface for interacting with docker containers
Sourcepub fn list(
&self,
opts: &ContainerListOptions,
) -> impl Future<Item = Vec<ContainerRep>, Error = Error>
pub fn list( &self, opts: &ContainerListOptions, ) -> impl Future<Item = Vec<ContainerRep>, Error = Error>
Lists the container instances on the docker host
Sourcepub fn get<'b>(&self, name: &'b str) -> Container<'a, 'b>
pub fn get<'b>(&self, name: &'b str) -> Container<'a, 'b>
Returns a reference to a set of operations available to a specific container instance
Sourcepub fn create(
&self,
opts: &ContainerOptions,
) -> impl Future<Item = ContainerCreateInfo, Error = Error>
pub fn create( &self, opts: &ContainerOptions, ) -> impl Future<Item = ContainerCreateInfo, Error = Error>
Returns a builder interface for creating a new container instance
Auto Trait Implementations§
impl<'a> Freeze for Containers<'a>
impl<'a> !RefUnwindSafe for Containers<'a>
impl<'a> Send for Containers<'a>
impl<'a> Sync for Containers<'a>
impl<'a> Unpin for Containers<'a>
impl<'a> !UnwindSafe for Containers<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more