Skip to content

Commit f965e06

Browse files
committed
Add API to resolve manifest for current platform
Add open_image_this_platform() which resolves a manifest from an OCI directory for the native platform (OS and architecture). This handles manifest lists by peeling them one level to find platform-specific manifests. Returns ResolvedManifest containing: - The resolved manifest and its digest - The source image index and digest if resolution went through a manifest list Assisted-by: OpenCode (claude-opus-4-5)
1 parent 8d05e3c commit f965e06

2 files changed

Lines changed: 455 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ keywords = ["oci", "opencontainers", "docker", "podman", "containers"]
1111
camino = "1.0.4"
1212
chrono = "0.4.19"
1313
cap-std-ext = "5.0"
14+
either = "1"
1415
flate2 = { features = ["zlib"], default-features = false, version = "1.0.20" }
1516
hex = "0.4.3"
1617
openssl = "0.10.33"

0 commit comments

Comments
 (0)