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

Function getStringToSignV4

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

getStringToSign a string based on selected query values.

(t time.Time, location, canonicalRequest, serviceType string)

Source from the content-addressed store, hash-verified

199
200// getStringToSign a string based on selected query values.
201func getStringToSignV4(t time.Time, location, canonicalRequest, serviceType string) string {
202 stringToSign := signV4Algorithm + "\n" + t.Format(iso8601DateFormat) + "\n"
203 stringToSign = stringToSign + getScope(location, t, serviceType) + "\n"
204 stringToSign += hex.EncodeToString(sum256([]byte(canonicalRequest)))
205 return stringToSign
206}
207
208// PreSignV4 presign the request, in accordance with
209// http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html.

Callers 4

PreSignV4Function · 0.85
PreSignV4OutpostsFunction · 0.85
signV4Function · 0.85
setSeedSignatureMethod · 0.85

Calls 3

getScopeFunction · 0.85
sum256Function · 0.85
EncodeToStringMethod · 0.80

Tested by

no test coverage detected