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

Function SignV4Trailer

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

SignV4Trailer 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, trailer http.Header)

Source from the content-addressed store, hash-verified

424// SignV4Trailer sign the request before Do(), in accordance with
425// http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
426func SignV4Trailer(req http.Request, accessKeyID, secretAccessKey, sessionToken, location string, trailer http.Header) *http.Request {
427 return signV4(req, accessKeyID, secretAccessKey, sessionToken, location, ServiceTypeS3, trailer)
428}
429
430// SignV4Outposts sign the request for S3 on Outposts (service name s3-outposts).
431func SignV4Outposts(req http.Request, accessKeyID, secretAccessKey, sessionToken, location string) *http.Request {

Callers 1

newRequestMethod · 0.92

Calls 1

signV4Function · 0.85

Tested by

no test coverage detected