1
This commit is contained in:
25
internal/object_storage/errors.go
Normal file
25
internal/object_storage/errors.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package object_storage
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrInvalidConfig = errors.New("invalid config")
|
||||
ErrUnknownClient = errors.New("unknown client")
|
||||
ErrInvalidInstance = errors.New("invalid instance")
|
||||
ErrToManyOptions = errors.New("too many options")
|
||||
|
||||
ErrObjectNotFound = errors.New("object not found")
|
||||
ErrObjectAlreadyExists = errors.New("object already exists")
|
||||
|
||||
ErrPutNewObject = errors.New("failed put new object")
|
||||
ErrGetObject = errors.New("failed get object")
|
||||
ErrDeleteObject = errors.New("failed delete object")
|
||||
ErrUpdateObject = errors.New("failed update object")
|
||||
ErrGetPresignedLink = errors.New("failed get presigned link")
|
||||
ErrCheckExists = errors.New("check exists")
|
||||
)
|
||||
|
||||
const (
|
||||
s3ErrorPatternNoSuchKey = "NoSuchKey"
|
||||
s3ErrorPatternNotFound = "NotFound"
|
||||
)
|
Reference in New Issue
Block a user