mirror of
https://github.com/vhaudiquet/ecrou.git
synced 2026-11-12 22:22:44 +00:00
refactor(download): split the OCI registry client into registry.rs
download.rs carried two clients in one file: the plain transfer plumbing and a full OCI Distribution Spec client (token auth, manifest lists, layer blobs). The registry half moves to its own module; download.rs keeps hashing, checksum files and file transfers. fetch_oci_digest moves with it; rootfs imports it from the new home. No behavior change.
This commit is contained in:
1 parent
bb61be4625
commit
aa95d05f41
6 files changed
+648
-633
No files matched your search
@@ -38,7 +38,7 @@ Rules:
|
||||
- `distro` - distro definitions and mirrors (`crates/ecrou/src/distro.rs`)
|
||||
- `download` - image download (`crates/ecrou/src/download.rs`)
|
||||
- `extract` - rootfs extraction (`crates/ecrou/src/extract.rs`)
|
||||
- `config` - config file (`crates/ecrou/src/config.rs`)
|
||||
- `registry` - OCI registry client (`crates/ecrou/src/registry.rs`)
|
||||
- `utils`, `error`, `progress` - shared helpers
|
||||
- `deps` - dependency additions/bumps (manifests, lockfile)
|
||||
- Omit the scope entirely for repo-wide changes that do not belong to a
|
||||
|
||||
Reference in new issue
Block a user