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

Function getScope

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

getScope generate a string of a specific date, an AWS region, and a service.

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

Source from the content-addressed store, hash-verified

81// getScope generate a string of a specific date, an AWS region, and a
82// service.
83func 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.
94func GetCredential(accessKeyID, location string, t time.Time, serviceType string) string {

Callers 4

GetCredentialFunction · 0.85
getStringToSignV4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected