Skip to content

Commit f791531

Browse files
committed
boundimage: Make helpers pub(crate)
Prep for using them in the install path. Signed-off-by: Colin Walters <[email protected]>
1 parent 5c5d201 commit f791531

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/boundimage.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const BOUND_IMAGE_DIR: &str = "usr/lib/bootc-experimental/bound-images.d";
2424
/// In the future this may be extended to include e.g. certificates or
2525
/// other pull options.
2626
#[derive(PartialEq, Eq)]
27-
struct BoundImage {
27+
pub(crate) struct BoundImage {
2828
image: String,
2929
auth_file: Option<String>,
3030
}
@@ -37,7 +37,7 @@ pub(crate) fn pull_bound_images(sysroot: &SysrootLock, deployment: &Deployment)
3737
}
3838

3939
#[context("Querying bound images")]
40-
fn query_bound_images(root: &Dir) -> Result<Vec<BoundImage>> {
40+
pub(crate) fn query_bound_images(root: &Dir) -> Result<Vec<BoundImage>> {
4141
let spec_dir = BOUND_IMAGE_DIR;
4242
let Some(bound_images_dir) = root.open_dir_optional(spec_dir)? else {
4343
tracing::debug!("Missing {spec_dir}");
@@ -113,7 +113,7 @@ fn parse_container_file(file_contents: &tini::Ini) -> Result<BoundImage> {
113113
}
114114

115115
#[context("pull bound images")]
116-
fn pull_images(_deployment_root: &Dir, bound_images: Vec<BoundImage>) -> Result<()> {
116+
pub(crate) fn pull_images(_deployment_root: &Dir, bound_images: Vec<BoundImage>) -> Result<()> {
117117
tracing::debug!("Pulling bound images: {}", bound_images.len());
118118
//TODO: do this in parallel
119119
for bound_image in bound_images {

0 commit comments

Comments
 (0)