0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/storage
peusebiu b80deb9927
refactor(storage): refactor storage into a single ImageStore (#1656)
unified both local and s3 ImageStore logic into a single ImageStore
added a new driver interface for common file/dirs manipulations
to be implemented by different storage types

refactor(gc): drop umoci dependency, implemented internal gc

added retentionDelay config option that specifies
the garbage collect delay for images without tags

this will also clean manifests which are part of an index image
(multiarch) that no longer exist.

fix(dedupe): skip blobs under .sync/ directory

if startup dedupe is running while also syncing is running
ignore blobs under sync's temporary storage

fix(storage): do not allow image indexes modifications

when deleting a manifest verify that it is not part of a multiarch image
and throw a MethodNotAllowed error to the client if it is.
we don't want to modify multiarch images

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
2023-09-01 10:54:39 -07:00
..
cache refactor(storage): refactor storage into a single ImageStore (#1656) 2023-09-01 10:54:39 -07:00
common refactor(storage): refactor storage into a single ImageStore (#1656) 2023-09-01 10:54:39 -07:00
constants refactor(storage): refactor storage into a single ImageStore (#1656) 2023-09-01 10:54:39 -07:00
imagestore refactor(storage): refactor storage into a single ImageStore (#1656) 2023-09-01 10:54:39 -07:00
local refactor(storage): refactor storage into a single ImageStore (#1656) 2023-09-01 10:54:39 -07:00
s3 refactor(storage): refactor storage into a single ImageStore (#1656) 2023-09-01 10:54:39 -07:00
types refactor(storage): refactor storage into a single ImageStore (#1656) 2023-09-01 10:54:39 -07:00
cache.go refactor(storage): refactoring storage (#1459) 2023-05-26 11:08:19 -07:00
cache_benchmark_test.go feat(cache): dynamodb implementation (#953) 2022-11-22 10:29:57 -08:00
cache_test.go refactor(storage): refactor storage into a single ImageStore (#1656) 2023-09-01 10:54:39 -07:00
README.md refactor(cache): rewrote/refactored cachedb functionality to use interface (#667) 2022-11-02 15:53:08 -07:00
scrub.go feat(cli): Fix multiple issues with zli output (#1612) 2023-07-12 10:21:12 -07:00
scrub_test.go refactor(storage): refactor storage into a single ImageStore (#1656) 2023-09-01 10:54:39 -07:00
storage.go refactor(storage): refactor storage into a single ImageStore (#1656) 2023-09-01 10:54:39 -07:00
storage_controller.go refactor(storage): refactoring storage (#1459) 2023-05-26 11:08:19 -07:00
storage_test.go refactor(storage): refactor storage into a single ImageStore (#1656) 2023-09-01 10:54:39 -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