Common function to get Docker client
()
| 12 | |
| 13 | // Common function to get Docker client |
| 14 | async fn get_docker() -> Result<Docker, String> { |
| 15 | Docker::connect_with_local_defaults().map_err(|e| e.to_string()) |
| 16 | } |
| 17 | |
| 18 | // Common function to list containers |
| 19 | async fn get_containers(docker: &Docker) -> Result<Vec<ContainerSummary>, String> { |
no outgoing calls
no test coverage detected