0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg
Andrei Aaron e8e7c343ad
feat(repodb): add pagination for ImageListForDigest and implement FilterTags (#1102)
* feat(repodb): add pagination for ImageListForDigest and implement FilterTags

ImageListForDigest can now return paginated results, directly from DB.
It uses FilterTags, a new method to filter tags (obviously) based on
the criteria provided in the filter function.
Pagination of tags is now slightly different, it shows all results if
no limit and offset are provided.

Signed-off-by: Alex Stan <alexandrustan96@yahoo.ro>

bug(tests): cli tests for digests expecting wrong size

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
(cherry picked from commit 369216df931a4053c18278a8d89f86d2e1e6a436)

fix(repodb): do not include repo metadata in search results if no matching tags are identified

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>

* fix(repodb): Fix an issue in FilterTags where repometa was not proceesed correctly

The filter function was called only once per manifest digest.
The function is supposed to also take into consideration repometa,
but only the first repometa-manifestmeta pair was processed.

Also increase code coverage.

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
Co-authored-by: Alex Stan <alexandrustan96@yahoo.ro>
2023-01-18 00:31:54 +02:00
..
api feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
cli feat(repodb): add pagination for ImageListForDigest and implement FilterTags (#1102) 2023-01-18 00:31:54 +02:00
common fix: removed resty calls from sync (#1016) 2022-12-22 10:19:42 -08:00
compliance chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00
debug feat(artifact): add OCI references support (#936) 2022-11-08 00:38:16 -08:00
exporter chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00
extensions feat(repodb): add pagination for ImageListForDigest and implement FilterTags (#1102) 2023-01-18 00:31:54 +02:00
log chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00
meta/repodb feat(repodb): add pagination for ImageListForDigest and implement FilterTags (#1102) 2023-01-18 00:31:54 +02:00
requestcontext feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
scheduler fix(coverage): scheduler coverage (#893) 2022-10-21 18:33:22 +03:00
storage feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
test feat(repodb): add pagination for ImageListForDigest and implement FilterTags (#1102) 2023-01-18 00:31:54 +02:00