Add list buckets for 'fs'

This commit is contained in:
Harshavardhana
2015-01-27 18:43:55 -08:00
parent 3781734903
commit 2ccecd3f32
2 changed files with 33 additions and 2 deletions

View File

@@ -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
}