0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-06 22:40:28 -05:00
zot/pkg/extensions/search/cve
Andrei Aaron ba6f347d8d
refactor(pkg/test): split logic in pkg/test/common.go into multiple packages (#1861)
Which could be imported independently. See more details:
1. "zotregistry.io/zot/pkg/test/common" - currently used as
   tcommon "zotregistry.io/zot/pkg/test/common" - inside pkg/test
   test "zotregistry.io/zot/pkg/test/common" - in tests
   . "zotregistry.io/zot/pkg/test/common" - in tests
Decouple zb from code in test/pkg in order to keep the size small.

2. "zotregistry.io/zot/pkg/test/image-utils" - curently used as
   . "zotregistry.io/zot/pkg/test/image-utils"

3. "zotregistry.io/zot/pkg/test/deprecated" -  curently used as
   "zotregistry.io/zot/pkg/test/deprecated"
This one will bre replaced gradually by image-utils in the future.

4. "zotregistry.io/zot/pkg/test/signature" - (cosign + notation) use as
   "zotregistry.io/zot/pkg/test/signature"

5. "zotregistry.io/zot/pkg/test/auth" - (bearer + oidc)  curently used as
   authutils "zotregistry.io/zot/pkg/test/auth"

 6. "zotregistry.io/zot/pkg/test/oci-utils" -  curently used as
   ociutils "zotregistry.io/zot/pkg/test/oci-utils"

Some unused functions were removed, some were replaced, and in
a few cases specific funtions were moved to the files they were used in.

Added an interface for the StoreController, this reduces the number of imports
of the entire image store, decreasing binary size for tests.
If the zb code was still coupled with pkg/test, this would have reflected in zb size.

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
2023-09-27 11:34:48 -07:00
..
cache feat(cve): implement CVE scanning as background tasks (#1833) 2023-09-22 11:49:17 -07:00
model fix(cve): cummulative fixes and improvements for CVE scanning logic (#1810) 2023-09-17 15:12:20 -07:00
trivy refactor(pkg/test): split logic in pkg/test/common.go into multiple packages (#1861) 2023-09-27 11:34:48 -07:00
cve.go feat(cve): implement CVE scanning as background tasks (#1833) 2023-09-22 11:49:17 -07:00
cve_internal_test.go fix(cve): cummulative fixes and improvements for CVE scanning logic (#1810) 2023-09-17 15:12:20 -07:00
cve_test.go refactor(pkg/test): split logic in pkg/test/common.go into multiple packages (#1861) 2023-09-27 11:34:48 -07:00
pagination.go fix(cve): cummulative fixes and improvements for CVE scanning logic (#1810) 2023-09-17 15:12:20 -07:00
pagination_test.go fix(cve): cummulative fixes and improvements for CVE scanning logic (#1810) 2023-09-17 15:12:20 -07:00
scan.go feat(cve): implement CVE scanning as background tasks (#1833) 2023-09-22 11:49:17 -07:00
scan_test.go refactor(pkg/test): split logic in pkg/test/common.go into multiple packages (#1861) 2023-09-27 11:34:48 -07:00
update.go feat(cve): implement CVE scanning as background tasks (#1833) 2023-09-22 11:49:17 -07:00
update_test.go refactor(pkg/test): split logic in pkg/test/common.go into multiple packages (#1861) 2023-09-27 11:34:48 -07:00