This commit is contained in:
chrislu 2023-02-07 14:59:47 -08:00
parent 1c2364936a
commit 999a126a3f

View file

@ -19,7 +19,7 @@ func VerifyS3BucketName(name string) (err error) {
if idx > 0 && (ch == '.' && name[idx-1] == '.') { if idx > 0 && (ch == '.' && name[idx-1] == '.') {
return fmt.Errorf("bucket names must not contain two adjacent periods") return fmt.Errorf("bucket names must not contain two adjacent periods")
} }
//TODO buckets with s3 transfer accleration cannot have . in name //TODO buckets with s3 transfer acceleration cannot have . in name
} }
if name[0] == '.' || name[0] == '-' { if name[0] == '.' || name[0] == '-' {
return fmt.Errorf("name must start with number or lower case character") return fmt.Errorf("name must start with number or lower case character")