MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / ensure_prepared_image_disk

Method ensure_prepared_image_disk

crates/openshell-driver-vm/src/driver.rs:2108–2130  ·  view source on GitHub ↗
(
        &self,
        sandbox_id: &str,
        image_ref: &str,
        bootstrap_root_disk: &Path,
    )

Source from the content-addressed store, hash-verified

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,

Callers 1

Tested by

no test coverage detected