Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getMD5HashBase64 (0.17 sec)

  1. cmd/test-utils_test.go

    func getCredentialString(accessKeyID, location string, t time.Time) string {
    	return accessKeyID + SlashSeparator + getScope(t, location)
    }
    
    // getMD5HashBase64 returns MD5 hash in base64 encoding of given data.
    func getMD5HashBase64(data []byte) string {
    	return base64.StdEncoding.EncodeToString(getMD5Sum(data))
    }
    
    // Returns new HTTP request object.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  2. cmd/server_test.go

    	// Create a byte array of 5MB.
    	// content for the object to be uploaded.
    	data := bytes.Repeat([]byte("0123456789abcdef"), 5*humanize.MiByte/16)
    	// calculate etag of the data.
    	etagBase64 := getMD5HashBase64(data)
    
    	buffer1 := bytes.NewReader(data)
    	objectName := "test-1-object"
    	// HTTP request for the object to be uploaded.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
Back to top