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

Function sumMD5Base64

utils.go:101–106  ·  utils.go::sumMD5Base64

sumMD5Base64 calculate md5sum for an input byte array, returns base64 encoded.

(data []byte)

Source from the content-addressed store, hash-verified

99
100// sumMD5Base64 calculate md5sum for an input byte array, returns base64 encoded.
101func sumMD5Base64(data []byte) string {
102 hash := newMd5Hasher()
103 defer hash.Close()
104 hash.Write(data)
105 return base64.StdEncoding.EncodeToString(hash.Sum(nil))
106}
107
108// getEndpointURL - construct a new endpoint.
109func getEndpointURL(endpoint string, secure bool) (*url.URL, error) {

Callers 15

SelectObjectContentMethod · 0.85
PutObjectLegalHoldMethod · 0.85
doMakeBucketMethod · 0.85
removeObjectsIterMethod · 0.85
removeObjectsMethod · 0.85
putBucketLifecycleMethod · 0.85
putBucketCorsMethod · 0.85
SetBucketNotificationMethod · 0.85
SetBucketEncryptionMethod · 0.85

Calls 3

newMd5HasherFunction · 0.85
EncodeToStringMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected