Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for buildGenericPolicy (0.16 sec)

  1. cmd/post-policy_test.go

    	if err != nil {
    		return nil, err
    	}
    
    	// Set form content-type.
    	req.Header.Set("Content-Type", w.FormDataContentType())
    	return req, nil
    }
    
    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)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top