0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/meta/repodb
Andrei Aaron feb7328f50
feat(repodb): DerivedImageList and BaseImageList make use of RepoDB (#1135)
- derivedImageList and baseImageList now use FilterTags to obtain results,
each with its own filter function
- images that have the exact same manifest as the one provided as a
parameter are no longer considered base images or derived images
- both calls can be made with specific pagination parameters, and the
response will include PageInfo

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

fix(tests): fix one of the pagination tests

The results were not reliable as the 2 returned tags were sorted by created date/time
which was not set, resulting in an unpredictable order

Signed-off-by: Andrei Aaron <andaaron@cisco.com>
(cherry picked from commit be504200a1127371422aeb0e5c0219e2a1ead20a)
(cherry picked from commit ed8d797e639f262a63840120afe92da7db9a7600)
Signed-off-by: Andrei Aaron <aaaron@luxoft.com>

Signed-off-by: Andrei Aaron <andaaron@cisco.com>
Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
Co-authored-by: Alex Stan <alexandrustan96@yahoo.ro>
2023-01-25 14:06:02 -08:00
..
boltdb-wrapper feat(repodb): DerivedImageList and BaseImageList make use of RepoDB (#1135) 2023-01-25 14:06:02 -08:00
common feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
dynamodb-wrapper feat(repodb): DerivedImageList and BaseImageList make use of RepoDB (#1135) 2023-01-25 14:06:02 -08:00
repodbfactory feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
update feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
version feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
common.go feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
pagination.go feat(repodb): add PageInfo to GlobalSearch and RepoListWithNewestImage results (#1121) 2023-01-18 14:20:55 -08:00
pagination_test.go feat(repodb): add PageInfo to GlobalSearch and RepoListWithNewestImage results (#1121) 2023-01-18 14:20:55 -08:00
repodb.go feat(repodb): DerivedImageList and BaseImageList make use of RepoDB (#1135) 2023-01-25 14:06:02 -08:00
repodb_test.go feat(repodb): DerivedImageList and BaseImageList make use of RepoDB (#1135) 2023-01-25 14:06:02 -08:00
sync_repodb.go feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
sync_repodb_test.go feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00