pkg-proxy/internal/storage
Andrew Nesbitt c73b0a35a1
Add direct-serve via presigned storage URLs
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
2026-04-27 12:04:38 +01:00
..
blob.go Add direct-serve via presigned storage URLs 2026-04-27 12:04:38 +01:00
blob_test.go Add direct-serve via presigned storage URLs 2026-04-27 12:04:38 +01:00
filesystem.go Add direct-serve via presigned storage URLs 2026-04-27 12:04:38 +01:00
filesystem_test.go Add direct-serve via presigned storage URLs 2026-04-27 12:04:38 +01:00
storage.go Add direct-serve via presigned storage URLs 2026-04-27 12:04:38 +01:00
storage_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00