MCPcopy
hub / github.com/minio/minio-go / CheckValidBucketName

Function CheckValidBucketName

pkg/s3utils/utils.go:398–400  ·  view source on GitHub ↗

CheckValidBucketName - checks if we have a valid input bucket name.

(bucketName string)

Source from the content-addressed store, hash-verified

396
397// CheckValidBucketName - checks if we have a valid input bucket name.
398func CheckValidBucketName(bucketName string) (err error) {
399 return checkBucketNameCommon(bucketName, false)
400}
401
402// IsS3ExpressBucket is S3 express bucket?
403func IsS3ExpressBucket(bucketName string) bool {

Callers 15

SelectObjectContentMethod · 0.92
FGetObjectMethod · 0.92
BucketExistsMethod · 0.92
StatObjectMethod · 0.92
appendObjectDoMethod · 0.92
PutObjectLegalHoldMethod · 0.92
GetObjectLegalHoldMethod · 0.92
RemoveBucketMethod · 0.92
RemoveObjectMethod · 0.92
RemoveObjectsMethod · 0.92
RemoveObjectsWithIterMethod · 0.92

Calls 1

checkBucketNameCommonFunction · 0.85

Tested by 2

TestIsValidBucketNameFunction · 0.74
TestIsValidBucketNameFunction · 0.68