mirror of
https://github.com/minio/minio.git
synced 2025-11-28 21:18:10 -05:00
Adding error support to all commands in storage interface
This commit is contained in:
@@ -24,14 +24,14 @@ import (
|
||||
|
||||
type Storage interface {
|
||||
// Bucket Operations
|
||||
ListBuckets(prefix string) ([]BucketMetadata, error)
|
||||
StoreBucket(bucket string) error
|
||||
ListBuckets(prefix string) []BucketMetadata
|
||||
|
||||
// Object Operations
|
||||
GetObjectMetadata(bucket string, object string) (ObjectMetadata, error)
|
||||
CopyObjectToWriter(w io.Writer, bucket string, object string) (int64, error)
|
||||
GetObjectMetadata(bucket string, object string) (ObjectMetadata, error)
|
||||
ListObjects(bucket, prefix string, count int) ([]ObjectMetadata, bool, error)
|
||||
StoreObject(bucket string, key string, data io.Reader) error
|
||||
ListObjects(bucket, prefix string, count int) ([]ObjectMetadata, bool)
|
||||
}
|
||||
|
||||
type BucketMetadata struct {
|
||||
|
||||
Reference in New Issue
Block a user