feat: proxy download image

This commit is contained in:
loveuer committed 2024-04-20 23:06:09 +08:00
1 parent c5d0b8e45b
commit 410a4c0d8d
57 files changed
+10910 -313

No files matched your search

+6
View File
@@ -96,6 +96,12 @@ func (l *localUploader) Done(ctx context.Context, bh interfaces.BlobHandler, id
}
defer vrc.Close()
logrus.
WithField("path", "localUploader.Done").
WithField("id", id).
WithField("size", size).
Error()
if err := bh.Put(ctx, repo, hash, vrc); err != nil {
if errors.As(err, &verify.Error{}) {
logrus.