camallo / dkregistry-rs

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

Modified Tag Pagination to get all query parameters from Link Header. #236

Closed kobutton closed 1 year ago

kobutton commented 2 years ago

This library does not work for listing tags with some registries such as JFrog's Artifactory, as the Artifactory Docker Registry does not use the "next_page" url query parameter. This Pull Request solves that issue by extracting all the query parameters returned in the Link Header provided by the registry server and uses them to fetch the next page of tags. This ensures a better alignment with the spec for tag pagination as defined by the docker API v2 Spec Here, while also maintaining compatibility with servers that use the "next_page" url query parameter such as quay.