| 424 | } |
| 425 | |
| 426 | pub async fn new_podman( |
| 427 | config: PodmanComputeConfig, |
| 428 | store: Arc<Store>, |
| 429 | sandbox_index: SandboxIndex, |
| 430 | sandbox_watch_bus: SandboxWatchBus, |
| 431 | tracing_log_bus: TracingLogBus, |
| 432 | supervisor_sessions: Arc<SupervisorSessionRegistry>, |
| 433 | ) -> Result<Self, ComputeError> { |
| 434 | let driver = PodmanComputeDriver::new(config) |
| 435 | .await |
| 436 | .map_err(|err| ComputeError::Message(err.to_string()))?; |
| 437 | let driver: SharedComputeDriver = Arc::new(PodmanDriverService::new(driver)); |
| 438 | Self::from_driver( |
| 439 | ComputeDriverKind::Podman.as_str().to_string(), |
| 440 | driver, |
| 441 | None, |
| 442 | None, |
| 443 | None, |
| 444 | store, |
| 445 | sandbox_index, |
| 446 | sandbox_watch_bus, |
| 447 | tracing_log_bus, |
| 448 | supervisor_sessions, |
| 449 | Vec::new(), |
| 450 | ) |
| 451 | .await |
| 452 | } |
| 453 | |
| 454 | #[must_use] |
| 455 | pub fn default_image(&self) -> &str { |