MCPcopy Create free account
hub / github.com/bootc-dev/bootc / pull_images

Function pull_images

crates/lib/src/boundimage.rs:164–174  ·  view source on GitHub ↗
(
    sysroot: &Storage,
    bound_images: Vec<crate::boundimage::BoundImage>,
)

Source from the content-addressed store, hash-verified

162
163#[context("Pulling bound images")]
164pub(crate) async fn pull_images(
165 sysroot: &Storage,
166 bound_images: Vec<crate::boundimage::BoundImage>,
167) -> Result<()> {
168 // Always initialize the img store to ensure labels are set when upgrading
169 let imgstore = sysroot.get_ensure_imgstore()?;
170 if bound_images.is_empty() {
171 return Ok(());
172 }
173 pull_images_impl(imgstore, bound_images).await
174}
175
176#[context("Pulling bound images")]
177pub(crate) async fn pull_images_impl(

Callers 1

pull_bound_imagesFunction · 0.85

Calls 3

pull_images_implFunction · 0.85
get_ensure_imgstoreMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected