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

Function NewIAM

pkg/credentials/iam_aws.go:91–95  ·  view source on GitHub ↗

NewIAM returns a pointer to a new Credentials object wrapping the IAM.

(endpoint string)

Source from the content-addressed store, hash-verified

89
90// NewIAM returns a pointer to a new Credentials object wrapping the IAM.
91func NewIAM(endpoint string) *Credentials {
92 return New(&IAM{
93 Endpoint: endpoint,
94 })
95}
96
97// RetrieveWithCredContext is like Retrieve with Cred Context
98func (m *IAM) RetrieveWithCredContext(cc *CredContext) (Value, error) {

Callers 3

TestIAMMalformedEndpointFunction · 0.85
TestIAMFailServerFunction · 0.85
TestIAMNoRolesFunction · 0.85

Calls 1

NewFunction · 0.70

Tested by 3

TestIAMMalformedEndpointFunction · 0.68
TestIAMFailServerFunction · 0.68
TestIAMNoRolesFunction · 0.68