Find manifests and manifest lists by digest, scoped by repository
Problem
When searching for manifests and manifest lists through the API, either to delete or read them, the search should be scoped by repository. Currently we don't have an easy way to do this.
Solution
Add two new methods to repositoryStore
:
FindManifestByDigest(ctx context.Context, r *models.Repository, d digest.Digest) (*models.Manifest, error)
FindManifestListByDigest(ctx context.Context, r *models.Repository, d digest.Digest) (*models.ManifestList, error)
Related to &2313 (closed) and #73 (closed).
Edited by João Pereira