Struct shiplift::Network
[−]
[src]
pub struct Network<'a, 'b> { /* fields omitted */ }
Interface for accessing and manipulating a docker network
Methods
impl<'a, 'b> Network<'a, 'b>
[src]
fn new<S>(docker: &'a Docker, id: S) -> Network<'a, 'b> where
S: Into<Cow<'b, str>>,
S: Into<Cow<'b, str>>,
Exports an interface exposing operations against a network instance
fn id(&self) -> &str
a getter for the Network id
fn inspect(&self) -> Result<NetworkInfo>
Inspects the current docker network instance's details
fn delete(&self) -> Result<()>
Delete the network instance
fn connect(&self, opts: &ContainerConnectionOptions) -> Result<()>
Connect container to network
fn disconnect(&self, opts: &ContainerConnectionOptions) -> Result<()>
Disconnect container to network