@@ -18,6 +18,17 @@ use ostree_ext::sysroot::SysrootLock;
18
18
/// symbolic links to `.container` or `.image` files.
19
19
const BOUND_IMAGE_DIR : & str = "usr/lib/bootc-experimental/bound-images.d" ;
20
20
21
+ /// A subset of data parsed from a `.image` or `.container` file with
22
+ /// the minimal information necessary to fetch the image.
23
+ ///
24
+ /// In the future this may be extended to include e.g. certificates or
25
+ /// other pull options.
26
+ #[ derive( PartialEq , Eq ) ]
27
+ struct BoundImage {
28
+ image : String ,
29
+ auth_file : Option < String > ,
30
+ }
31
+
21
32
/// Given a deployment, pull all container images it references.
22
33
pub ( crate ) fn pull_bound_images ( sysroot : & SysrootLock , deployment : & Deployment ) -> Result < ( ) > {
23
34
let deployment_root = & crate :: utils:: deployment_fd ( sysroot, deployment) ?;
@@ -117,17 +128,6 @@ fn pull_images(_deployment_root: &Dir, bound_images: Vec<BoundImage>) -> Result<
117
128
Ok ( ( ) )
118
129
}
119
130
120
- /// A subset of data parsed from a `.image` or `.container` file with
121
- /// the minimal information necessary to fetch the image.
122
- ///
123
- /// In the future this may be extended to include e.g. certificates or
124
- /// other pull options.
125
- #[ derive( PartialEq , Eq ) ]
126
- struct BoundImage {
127
- image : String ,
128
- auth_file : Option < String > ,
129
- }
130
-
131
131
impl BoundImage {
132
132
fn new ( image : String , auth_file : Option < String > ) -> Result < BoundImage > {
133
133
let image = parse_spec_value ( & image) . context ( "Invalid image value" ) ?;
0 commit comments