Files
zot/pkg/storage
Ramkumar Chinchani 8a7a754236 refactor(storage): reduce cyclomatic complexity of upgradeToGlobalBlobstore
Extract the blob-to-blobstore promotion logic into a separate helper method
(promoteBlobCandidate) to reduce the main function's cyclomatic complexity from
34 to 28, bringing it within the gocyclo threshold of 30.

Also move blobCandidate and repoBlobRef type definitions to package level to
support both the main function and helper.

Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
2026-06-16 21:28:14 -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