Skip to content

Find manifests and manifest lists by digest, scoped by repository

João Pereira requested to merge db-find-manifests-by-digest-from-repo into database

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

Merge request reports

Loading