(self: &Arc<Self>, docker_host: &mut DockerHost)
| 1191 | } |
| 1192 | |
| 1193 | pub async fn edit_docker_host(self: &Arc<Self>, docker_host: &mut DockerHost) -> Result<()> { |
| 1194 | docker_host.id = self |
| 1195 | .call( |
| 1196 | "addDockerHost", |
| 1197 | vec![ |
| 1198 | serde_json::to_value(docker_host.clone()).unwrap(), |
| 1199 | serde_json::to_value(docker_host.id.clone()).unwrap(), |
| 1200 | ], |
| 1201 | "/id", |
| 1202 | true, |
| 1203 | ) |
| 1204 | .await?; |
| 1205 | |
| 1206 | Ok(()) |
| 1207 | } |
| 1208 | |
| 1209 | pub async fn delete_docker_host(self: &Arc<Self>, docker_host_id: i32) -> Result<()> { |
| 1210 | let _: bool = self |
no test coverage detected