mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 04:48:26 +08:00
fix(sync): better cleaning sync's download dir (#2273)
added cleanup in the case of copy.Image() failures. Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
@@ -75,6 +75,8 @@ type Destination interface {
|
||||
CanSkipImage(repo, tag string, imageDigest digest.Digest) (bool, error)
|
||||
// CommitImage moves a synced repo/ref from temporary oci layout to ImageStore
|
||||
CommitImage(imageReference types.ImageReference, repo, tag string) error
|
||||
// Removes image reference, used when copy.Image() errors out
|
||||
CleanupImage(imageReference types.ImageReference, repo, reference string) error
|
||||
}
|
||||
|
||||
type TaskGenerator struct {
|
||||
|
||||
Reference in New Issue
Block a user