You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
656 B
37 lines
656 B
package storage
|
|
|
|
type GenericError struct {
|
|
Bucket string
|
|
Path string
|
|
}
|
|
|
|
type ObjectExists struct {
|
|
Bucket string
|
|
Key string
|
|
}
|
|
|
|
type BucketNameInvalid struct {
|
|
Bucket string
|
|
}
|
|
|
|
type BucketExists struct {
|
|
Bucket string
|
|
}
|
|
|
|
type ObjectNotFound GenericError
|
|
|
|
func (self ObjectNotFound) Error() string {
|
|
return "Object not Found: " + self.Bucket + "#" + self.Path
|
|
}
|
|
|
|
func (self ObjectExists) Error() string {
|
|
return "Object exists: " + self.Bucket + "#" + self.Key
|
|
}
|
|
|
|
func (self BucketNameInvalid) Error() string {
|
|
return "Bucket name invalid: " + self.Bucket
|
|
}
|
|
|
|
func (self BucketExists) Error() string {
|
|
return "Bucket exists: " + self.Bucket
|
|
}
|
|
|