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

Function getIAMRoleURL

pkg/credentials/iam_aws.go:263–270  ·  view source on GitHub ↗

Get the final IAM role URL where the request will be sent to fetch the rolling access credentials. http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html

(endpoint string)

Source from the content-addressed store, hash-verified

261// be sent to fetch the rolling access credentials.
262// http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
263func getIAMRoleURL(endpoint string) (*url.URL, error) {
264 u, err := url.Parse(endpoint)
265 if err != nil {
266 return nil, err
267 }
268 u.Path = DefaultIAMSecurityCredsPath
269 return u, nil
270}
271
272// listRoleNames lists of credential role names associated
273// with the current EC2 service. If there are no credentials,

Callers 1

getCredentialsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected