From f791531df66f696d61ccc2af70695996df8fe39c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 18 Jul 2024 16:43:04 -0400 Subject: [PATCH] boundimage: Make helpers `pub(crate)` Prep for using them in the install path. Signed-off-by: Colin Walters --- lib/src/boundimage.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/boundimage.rs b/lib/src/boundimage.rs index ae362a40b..3c46923f9 100644 --- a/lib/src/boundimage.rs +++ b/lib/src/boundimage.rs @@ -24,7 +24,7 @@ const BOUND_IMAGE_DIR: &str = "usr/lib/bootc-experimental/bound-images.d"; /// In the future this may be extended to include e.g. certificates or /// other pull options. #[derive(PartialEq, Eq)] -struct BoundImage { +pub(crate) struct BoundImage { image: String, auth_file: Option, } @@ -37,7 +37,7 @@ pub(crate) fn pull_bound_images(sysroot: &SysrootLock, deployment: &Deployment) } #[context("Querying bound images")] -fn query_bound_images(root: &Dir) -> Result> { +pub(crate) fn query_bound_images(root: &Dir) -> Result> { let spec_dir = BOUND_IMAGE_DIR; let Some(bound_images_dir) = root.open_dir_optional(spec_dir)? else { tracing::debug!("Missing {spec_dir}"); @@ -113,7 +113,7 @@ fn parse_container_file(file_contents: &tini::Ini) -> Result { } #[context("pull bound images")] -fn pull_images(_deployment_root: &Dir, bound_images: Vec) -> Result<()> { +pub(crate) fn pull_images(_deployment_root: &Dir, bound_images: Vec) -> Result<()> { tracing::debug!("Pulling bound images: {}", bound_images.len()); //TODO: do this in parallel for bound_image in bound_images {