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

Function GetCredential

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

GetCredential generate a credential string.

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

Source from the content-addressed store, hash-verified

92
93// GetCredential generate a credential string.
94func GetCredential(accessKeyID, location string, t time.Time, serviceType string) string {
95 scope := getScope(location, t, serviceType)
96 return accessKeyID + "/" + scope
97}
98
99// getHashedPayload get the hexadecimal value of the SHA256 hash of
100// the request payload.

Callers 5

PresignedPostPolicyMethod · 0.92
PreSignV4Function · 0.85
PreSignV4OutpostsFunction · 0.85
signV4Function · 0.85

Calls 1

getScopeFunction · 0.85

Tested by

no test coverage detected