Stream object responses with known size bounds
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user