mirror of
https://github.com/minio/minio.git
synced 2025-11-10 22:10:12 -05:00
Add list buckets for 'fs'
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
package storage
|
||||
|
||||
type BackendError struct {
|
||||
Path string
|
||||
}
|
||||
|
||||
type GenericError struct {
|
||||
Bucket string
|
||||
Path string
|
||||
@@ -47,6 +51,7 @@ func EmbedError(bucket, object string, err error) ImplementationError {
|
||||
}
|
||||
}
|
||||
|
||||
type BackendCorrupted BackendError
|
||||
type BucketNameInvalid GenericBucketError
|
||||
type BucketExists GenericBucketError
|
||||
type BucketNotFound GenericBucketError
|
||||
@@ -75,3 +80,7 @@ func (self BucketNotFound) Error() string {
|
||||
func (self ObjectNameInvalid) Error() string {
|
||||
return "Object name invalid: " + self.Bucket + "#" + self.Object
|
||||
}
|
||||
|
||||
func (self BackendCorrupted) Error() string {
|
||||
return "Backend corrupted: " + self.Path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user