getScope generate a string of a specific date, an AWS region, and a service.
(location string, t time.Time, serviceType string)
| 81 | // getScope generate a string of a specific date, an AWS region, and a |
| 82 | // service. |
| 83 | func getScope(location string, t time.Time, serviceType string) string { |
| 84 | scope := strings.Join([]string{ |
| 85 | t.Format(yyyymmdd), |
| 86 | location, |
| 87 | serviceType, |
| 88 | "aws4_request", |
| 89 | }, "/") |
| 90 | return scope |
| 91 | } |
| 92 | |
| 93 | // GetCredential generate a credential string. |
| 94 | func GetCredential(accessKeyID, location string, t time.Time, serviceType string) string { |
no outgoing calls
no test coverage detected