mirror of
https://github.com/minio/minio.git
synced 2025-11-28 21:18:10 -05:00
Update comments across the codebase
This commit is contained in:
@@ -67,6 +67,7 @@ type BucketResourcesMetadata struct {
|
||||
Notification string
|
||||
}
|
||||
|
||||
// Verify Bucket name in accordance with http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html
|
||||
func IsValidBucket(bucket string) bool {
|
||||
if len(bucket) < 3 || len(bucket) > 63 {
|
||||
return false
|
||||
@@ -82,6 +83,7 @@ func IsValidBucket(bucket string) bool {
|
||||
return match
|
||||
}
|
||||
|
||||
// Verify Object name in accordance with http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html
|
||||
func IsValidObject(object string) bool {
|
||||
if len(object) > 1024 || len(object) == 0 {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user