Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getCredentialString (0.21 sec)

  1. cmd/post-policy_test.go

    func buildGenericPolicy(t time.Time, accessKey, region, bucketName, objectName string, contentLengthRange bool) []byte {
    	// Expire the request five minutes from now.
    	expirationTime := t.Add(time.Minute * 5)
    
    	credStr := getCredentialString(accessKey, region, t)
    	// Create a new post policy.
    	policy := newPostPolicyBytesV4(credStr, bucketName, objectName, expirationTime)
    	if contentLengthRange {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    		"Signature=" + signature,
    	}
    	auth := strings.Join(parts, ", ")
    	req.Header.Set("Authorization", auth)
    
    	return nil
    }
    
    // getCredentialString generate a credential string.
    func getCredentialString(accessKeyID, location string, t time.Time) string {
    	return accessKeyID + SlashSeparator + getScope(t, location)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top