Fetch a single sandbox by name.
(
&self,
sandbox_name: &str,
)
| 713 | |
| 714 | /// Fetch a single sandbox by name. |
| 715 | pub async fn get_sandbox( |
| 716 | &self, |
| 717 | sandbox_name: &str, |
| 718 | ) -> Result<Option<DriverSandbox>, ComputeDriverError> { |
| 719 | let name = container::container_name(sandbox_name); |
| 720 | match self.client.inspect_container(&name).await { |
| 721 | Ok(inspect) => Ok(driver_sandbox_from_inspect(&inspect)), |
| 722 | Err(PodmanApiError::NotFound(_)) => Ok(None), |
| 723 | Err(e) => Err(ComputeDriverError::from(e)), |
| 724 | } |
| 725 | } |
| 726 | |
| 727 | /// List all managed sandboxes. |
| 728 | /// |
nothing calls this directly
no test coverage detected