GetCredential generate a credential string.
(accessKeyID, location string, t time.Time, serviceType string)
| 92 | |
| 93 | // GetCredential generate a credential string. |
| 94 | func 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. |
no test coverage detected