mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Adding etag to headers
This commit is contained in:
@@ -150,3 +150,9 @@ func isValidBucket(bucket string) bool {
|
||||
}
|
||||
return valid
|
||||
}
|
||||
|
||||
func (storage *Storage) GetObjectMetadata(bucket, key string) mstorage.ObjectMetadata {
|
||||
objectKey := bucket + ":" + key
|
||||
|
||||
return storage.objectdata[objectKey].metadata
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ type Storage interface {
|
||||
ListBuckets(prefix string) []BucketMetadata
|
||||
|
||||
// Object Operations
|
||||
GetObjectMetadata(bucket string, object string) ObjectMetadata
|
||||
CopyObjectToWriter(w io.Writer, bucket string, object string) (int64, error)
|
||||
StoreObject(bucket string, key string, data io.Reader) error
|
||||
ListObjects(bucket, prefix string, count int) []ObjectMetadata
|
||||
|
||||
Reference in New Issue
Block a user