Struct shiplift::builder::ContainerOptionsBuilder
source · pub struct ContainerOptionsBuilder { /* private fields */ }
Implementations§
source§impl ContainerOptionsBuilder
impl ContainerOptionsBuilder
pub fn name(&mut self, name: &str) -> &mut Self
pub fn volumes(&mut self, volumes: Vec<&str>) -> &mut Self
pub fn expose(&mut self, srcport: u32, protocol: &str, hostport: u32) -> &mut Self
pub fn links(&mut self, links: Vec<&str>) -> &mut Self
pub fn memory(&mut self, memory: u64) -> &mut Self
Sets an integer value representing the container’s relative CPU weight versus other containers.
pub fn labels(&mut self, labels: &HashMap<&str, &str>) -> &mut Self
sourcepub fn attach_stdin(&mut self, attach: bool) -> &mut Self
pub fn attach_stdin(&mut self, attach: bool) -> &mut Self
Whether to attach to stdin
.
sourcepub fn attach_stdout(&mut self, attach: bool) -> &mut Self
pub fn attach_stdout(&mut self, attach: bool) -> &mut Self
Whether to attach to stdout
.
sourcepub fn attach_stderr(&mut self, attach: bool) -> &mut Self
pub fn attach_stderr(&mut self, attach: bool) -> &mut Self
Whether to attach to stderr
.
sourcepub fn tty(&mut self, tty: bool) -> &mut Self
pub fn tty(&mut self, tty: bool) -> &mut Self
Whether standard streams should be attached to a TTY.
pub fn extra_hosts(&mut self, hosts: Vec<&str>) -> &mut Self
pub fn volumes_from(&mut self, volumes: Vec<&str>) -> &mut Self
pub fn network_mode(&mut self, network: &str) -> &mut Self
pub fn env(&mut self, envs: Vec<&str>) -> &mut Self
pub fn cmd(&mut self, cmds: Vec<&str>) -> &mut Self
pub fn entrypoint(&mut self, entrypoint: &str) -> &mut Self
pub fn capabilities(&mut self, capabilities: Vec<&str>) -> &mut Self
pub fn devices(&mut self, devices: Vec<HashMap<String, String>>) -> &mut Self
pub fn log_driver(&mut self, log_driver: &str) -> &mut Self
pub fn restart_policy(
&mut self,
name: &str,
maximum_retry_count: u64
) -> &mut Self
pub fn auto_remove(&mut self, set: bool) -> &mut Self
pub fn build(&self) -> ContainerOptions
Trait Implementations§
source§impl Default for ContainerOptionsBuilder
impl Default for ContainerOptionsBuilder
source§fn default() -> ContainerOptionsBuilder
fn default() -> ContainerOptionsBuilder
Returns the “default value” for a type. Read more