forked from mirrors/pkg-proxy
When storage.direct_serve is enabled and the backend supports it (S3, Azure), cached artifact downloads return a 302 redirect to a presigned URL instead of streaming bytes through the proxy. Falls back to streaming when the backend can't sign (fileblob, local filesystem) or signing fails. Adds the azureblob driver so azblob:// storage URLs work. Cache-hit accounting already happened before io.Copy so redirects are counted correctly; the metrics calls are pulled into a helper so both paths share them. Closes #96 |
||
|---|---|---|
| .. | ||
| blob.go | ||
| blob_test.go | ||
| filesystem.go | ||
| filesystem_test.go | ||
| storage.go | ||
| storage_test.go | ||