Method
new
(
docker: Docker,
dropper: DropChute,
drop_policy: DropPolicy,
name: N,
user: u32,
image: &str,
volumes: Volumes,
network_name: Option<N
Source from the content-addressed store, hash-verified
| 42 | { |
| 43 | #[allow(clippy::too_many_arguments)] |
| 44 | pub fn new( |
| 45 | docker: Docker, |
| 46 | dropper: DropChute, |
| 47 | drop_policy: DropPolicy, |
| 48 | name: N, |
| 49 | user: u32, |
| 50 | image: &str, |
| 51 | volumes: Volumes, |
| 52 | network_name: Option<NetworkName>, |
| 53 | ) -> Self { |
| 54 | Self { |
| 55 | docker, |
| 56 | dropper, |
| 57 | drop_policy, |
| 58 | name, |
| 59 | user, |
| 60 | image: image.to_string(), |
| 61 | volumes, |
| 62 | network_name, |
| 63 | env: EnvMap::default(), |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | pub fn with_env(mut self, env: EnvMap) -> Self { |
| 68 | self.env = env; |
Callers
nothing calls this directly
Tested by
no test coverage detected