Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for preSignV4 (0.19 sec)

  1. cmd/test-utils_test.go

    		return nil, err
    	}
    
    	req, err = assembleStreamingChunks(req, body, chunkSize, secretKey, signature, currTime)
    	return req, err
    }
    
    // preSignV4 presign the request, in accordance with
    // http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html.
    func preSignV4(req *http.Request, accessKeyID, secretAccessKey string, expires int64) error {
    	// Presign is not needed for anonymous credentials.
    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/object-handlers_test.go

    		0, nil)
    	if err != nil {
    		t.Fatalf("[%s] - Failed to create an unsigned request to list object parts for bucket %s, uploadId %s",
    			instanceType, bucketName, mpartResp.UploadID)
    	}
    
    	err = preSignV4(req, credentials.AccessKey, credentials.SecretKey, int64(10*60*60))
    	if err != nil {
    		t.Fatalf("[%s] - Failed to presignV2 an unsigned request to list object parts for bucket %s, uploadId %s",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
Back to top