Tahinli/forge
public0 watching
★ 0
| 1 | //! The builtin image store: pulls OCI images, unpacks them into rootfs directories and garbage |
| 2 | //! collects them. Everything lives under one root directory: |
| 3 | //! |
| 4 | //! - `blobs/sha256/<hex>`: verified layer blobs, as pulled (compressed) |
| 5 | //! - `rootfs/<hex>/`: the unpacked rootfs for one manifest digest |
| 6 | //! - `meta/<hex>.json`: env, working dir, user and layer digests for that rootfs |
| 7 | //! - `tags/<encoded ref>`: the digest that a reference last resolved to |
| 8 | //! - `locks/<hex>.lock`: held while an image is pulled or unpacked |
| 9 | //! - `last_used/<hex>`: a stamp file, touched on every use, for garbage collection |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | use fmt; |
| 17 | use PathBuf; |
| 18 | |
| 19 | pub use unpack_helper_main; |
| 20 | pub use ; |
| 21 | pub use ; |
| 22 | |
| 23 | /// Errors from pulling, verifying, unpacking or collecting images. |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | /// Basic-auth credentials for a registry. The password is never printed. |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | /// An image ready to run: its rootfs directory and the settings from its config. |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 |