0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-02-03 23:09:41 -05:00
zot/pkg/storage
Ramkumar Chinchani 324a517ea3 gc: add a policy to skip garbage collecting new blobs
We perform inline garbage collection of orphan blobs. However, the
dist-spec poses a problem because blobs begin their life as orphan blobs
and then a manifest is add which refers to these blobs.

We use umoci's GC() to perform garbage collection and policy support
has been added recently which can control whether a blob can be skipped
for GC.

In this patch, we use a time-based policy to skip blobs.
2020-07-06 15:52:35 -07:00
..
BUILD.bazel gc: add a policy to skip garbage collecting new blobs 2020-07-06 15:52:35 -07:00
cache.go Upgraded build pipeline 2020-06-25 23:43:31 -07:00
cache_test.go dedupe: record relative path for cache entries 2020-05-27 22:11:26 -07:00
storage.go gc: add a policy to skip garbage collecting new blobs 2020-07-06 15:52:35 -07:00
storage_test.go Upgraded build pipeline 2020-06-25 23:43:31 -07:00