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

Method Get

pkg/credentials/credentials.go:179–181  ·  view source on GitHub ↗

Get returns the credentials value, or error if the credentials Value failed to be retrieved. Will return the cached credentials Value if it has not expired. If the credentials Value has expired the Provider's Retrieve() will be called to refresh the credentials. If Credentials.Expire() was called

()

Source from the content-addressed store, hash-verified

177// used. To get new credentials use the Credentials.GetWithContext function
178// to ensure the proper context (i.e. HTTP client) will be used.
179func (c *Credentials) Get() (Value, error) {
180 return c.GetWithContext(nil)
181}
182
183// GetWithContext returns the credentials value, or error if the
184// credentials Value failed to be retrieved.

Callers 1

initIMDSv2ServerFunction · 0.45

Calls 1

GetWithContextMethod · 0.95

Tested by 1

initIMDSv2ServerFunction · 0.36