camallo / dkregistry-rs

A pure-Rust asynchronous library for Docker Registry API v2
Apache License 2.0
62 stars 39 forks source link

add support for ManifestList images #232

Closed PratikMahajan closed 2 years ago

PratikMahajan commented 2 years ago

ManifestList images also known as fat-manifests are collections of manifests for different arch/os. this pr adds support for ManifestList images.

As manifest list images only contain digests of the images contained in the manifest, the layers_digests function returns the digest of all the images contained in the ManifestList instead of individual layers of the manifests. The layers of a specific image from manifest list can be obtained using the digest of the image from the manifest list and getting it's manifest and manifestref (get_manifest_and_ref()) and using this manifest of the individual image to get the layers.