0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-20 22:52:51 -05:00
zot/pkg/storage
peusebiu 1b184ceef8
fix(zb): fixed remote repositories cleanup (#1461)
fix(storage/local): also put deduped blobs in cache, not just origin blobs

this caused an error when trying to delete deduped blobs
from multiple repositories

fix(storage/s3): check blob is present in cache before deleting

this is an edge case where dedupe is false but cacheDriver is not nil
(because in s3 we open the cache.db if storage find it in rootDir)
it caused an error when trying to delete blobs uploaded with dedupe false

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
2023-05-19 09:51:15 -07:00
..
cache feat: remove usage of zerolog.Logger.Msgf() from zot code (#1382) 2023-04-27 19:44:22 -07:00
constants fix(referrers): annotation key is incorrect (#1139) 2023-01-25 12:50:03 -08:00
local fix(zb): fixed remote repositories cleanup (#1461) 2023-05-19 09:51:15 -07:00
s3 fix(zb): fixed remote repositories cleanup (#1461) 2023-05-19 09:51:15 -07:00
cache.go feat(cache): dynamodb implementation (#953) 2022-11-22 10:29:57 -08:00
cache_benchmark_test.go feat(cache): dynamodb implementation (#953) 2022-11-22 10:29:57 -08:00
cache_test.go refactor(cache): rewrote/refactored cachedb functionality to use interface (#667) 2022-11-02 15:53:08 -07:00
common.go fix(sync): fixed way of updating repodb when syncing a signature (#1439) 2023-05-15 12:02:23 +03:00
common_test.go feat(api): added oci-subject header when pushing an image with subject field (#1415) 2023-05-12 09:32:01 -07:00
lint-interface.go image level lint: enforce manifest mandatory annotations 2022-07-27 11:48:04 +03:00
README.md refactor(cache): rewrote/refactored cachedb functionality to use interface (#667) 2022-11-02 15:53:08 -07:00
scrub.go feat(scrub): add scrub logic for ImageIndex media type (#1031) 2022-12-10 16:38:01 -08:00
scrub_test.go feat(api): added oci-subject header when pushing an image with subject field (#1415) 2023-05-12 09:32:01 -07:00
storage.go feat(api): added oci-subject header when pushing an image with subject field (#1415) 2023-05-12 09:32:01 -07:00
storage_controller.go refactor: remove pkg/extensions/search/common and move the code to the appropriate packages (#1358) 2023-04-18 11:07:47 -07:00
storage_test.go feat(api): added oci-subject header when pushing an image with subject field (#1415) 2023-05-12 09:32:01 -07:00

zot currently supports two types of underlying filesystems:

  1. local - a locally mounted filesystem

  2. remote - a remote filesystem such as AWS S3

The cache database can be configured independently of storage. Right now, zot supports the following database implementations:

  1. BoltDB - local storage. Set the "cloudCache" field in the config file to false. Example: examples/config-boltdb.json