(
&self,
sandbox_id: &str,
image_ref: &str,
bootstrap_root_disk: &Path,
)
| 2106 | } |
| 2107 | |
| 2108 | async fn ensure_prepared_image_disk( |
| 2109 | &self, |
| 2110 | sandbox_id: &str, |
| 2111 | image_ref: &str, |
| 2112 | bootstrap_root_disk: &Path, |
| 2113 | ) -> Result<PreparedImageDisk, Status> { |
| 2114 | if let Some((docker, image_identity)) = |
| 2115 | self.resolve_local_container_image(image_ref).await? |
| 2116 | { |
| 2117 | return self |
| 2118 | .ensure_prepared_local_image_disk( |
| 2119 | sandbox_id, |
| 2120 | image_ref, |
| 2121 | &docker, |
| 2122 | &image_identity, |
| 2123 | bootstrap_root_disk, |
| 2124 | ) |
| 2125 | .await; |
| 2126 | } |
| 2127 | |
| 2128 | self.ensure_prepared_registry_image_disk(sandbox_id, image_ref, bootstrap_root_disk) |
| 2129 | .await |
| 2130 | } |
| 2131 | |
| 2132 | async fn ensure_prepared_local_image_disk( |
| 2133 | &self, |
no test coverage detected