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

Function SignV4

pkg/signer/request-signature-v4.go:408–410  ·  view source on GitHub ↗

SignV4 sign the request before Do(), in accordance with http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html.

(req http.Request, accessKeyID, secretAccessKey, sessionToken, location string)

Source from the content-addressed store, hash-verified

406// SignV4 sign the request before Do(), in accordance with
407// http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html.
408func SignV4(req http.Request, accessKeyID, secretAccessKey, sessionToken, location string) *http.Request {
409 return signV4(req, accessKeyID, secretAccessKey, sessionToken, location, ServiceTypeS3, nil)
410}
411
412// SignV4Express sign the request before Do(), in accordance with
413// http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html.

Callers 3

Calls 1

signV4Function · 0.85

Tested by 2