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

Function New

pkg/credentials/credentials.go:159–164  ·  view source on GitHub ↗

New returns a pointer to a new Credentials with the provider set.

(provider Provider)

Source from the content-addressed store, hash-verified

157
158// New returns a pointer to a new Credentials with the provider set.
159func New(provider Provider) *Credentials {
160 return &Credentials{
161 provider: provider,
162 forceRefresh: true,
163 }
164}
165
166// Get returns the credentials value, or error if the credentials Value failed
167// to be retrieved.

Callers 15

NewSTSClientGrantsFunction · 0.70
NewSTSAssumeRoleFunction · 0.70
NewChainCredentialsFunction · 0.70
NewEnvMinioFunction · 0.70
NewIAMFunction · 0.70
NewFileAWSCredentialsFunction · 0.70
NewLDAPIdentityFunction · 0.70
NewFileMinioClientFunction · 0.70
NewSTSWebIdentityFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestCredentialsGetFunction · 0.56