Stream object responses with known size bounds

This commit is contained in:
2026-12-01 20:22:42 +00:00
parent da4de023ad
commit d0c879ad09
7 changed files with 191 additions and 5 deletions

View File

@@ -34,8 +34,10 @@ type ObjectStore interface {
// ObjectInfo describes one object in remote storage.
type ObjectInfo struct {
Key string
Size int64
Key string
Size int64
// SizeKnown distinguishes an observed zero-byte response from missing size metadata.
SizeKnown bool
ETag string
LastModified *time.Time
}