generated from beyondstorage/go-service-example
-
Notifications
You must be signed in to change notification settings - Fork 4
/
errors.go
22 lines (16 loc) · 1016 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package qingstor
import "github.com/beyondstorage/go-storage/v4/services"
var (
// ErrBucketNameInvalid will be returned while bucket name is invalid.
ErrBucketNameInvalid = services.NewErrorCode("invalid bucket name")
// ErrWorkDirInvalid will be returned while work dir is invalid.
// Work dir must start and end with only one '/'
ErrWorkDirInvalid = services.NewErrorCode("invalid work dir")
// ErrEncryptionCustomerKeyInvalid will be returned while encryption customer key is invalid.
// Encryption key must be a 32-byte AES-256 key.
ErrEncryptionCustomerKeyInvalid = services.NewErrorCode("invalid encryption customer key")
// ErrAppendNextPositionEmpty will be returned while next append position is empty.
ErrAppendNextPositionEmpty = services.NewErrorCode("next append position is empty")
// ErrPartNumberInvalid will be returned while part number is out of range [0, 10000] when uploading multipart.
ErrPartNumberInvalid = services.NewErrorCode("part number is out of range [0, 10000]")
)