-
Notifications
You must be signed in to change notification settings - Fork 402
Closed
Labels
kind/featureA request for, or a PR adding, new functionalityA request for, or a PR adding, new functionality
Description
when skeopeo
copy many images into one oci repo, how can i get the images name?
for example the index.json
:
"schemaVersion":2,"manifests":[{"mediaType":"application/vnd.oci.image.manifest.v1+json","digest":"sha256:2ba9d0aec419c8dd71c584de4b726001e549514f770c5f3058775262a734a4d3","size":1813,"annotations":{"org.opencontainers.image.ref.name":"platform/mysql:8.0.27-aarch64"}},{"mediaType":"application/vnd.oci.image.manifest.v1+json","digest":"sha256:a4cfae91a5fcd73287fce2a701264da5241c6778b29877ca57f6bc74c50eba70","size":2308,"annotations":{"org.opencontainers.image.ref.name":"platform/devops-tools:latest-aarch64"}}
...
there only a API https://github.com/containers/image/blob/main/oci/layout/oci_transport.go#L219
func LoadManifestDescriptor(imgRef types.ImageReference) (imgspecv1.Descriptor, error) {
so is it acceptable to add a API get [] imgspecv1.Descriptor
of all the name within oci repo ? , such as:
func LoadAllManifestDescriptor(imgRef types.ImageReference) ([] imgspecv1.Descriptor, error) {
and i would very like tocontribute with a PR.
many thanks.
Metadata
Metadata
Assignees
Labels
kind/featureA request for, or a PR adding, new functionalityA request for, or a PR adding, new functionality