You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
305 B
14 lines
305 B
package v4
|
|
|
|
import "strings"
|
|
|
|
// BuildCredentialScope builds the Signature Version 4 (SigV4) signing scope
|
|
func BuildCredentialScope(signingTime SigningTime, region, service string) string {
|
|
return strings.Join([]string{
|
|
signingTime.ShortTimeFormat(),
|
|
region,
|
|
service,
|
|
"aws4_request",
|
|
}, "/")
|
|
}
|