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

Method GetCreds

api.go:1161–1166  ·  view source on GitHub ↗

GetCreds returns the access creds for the client

()

Source from the content-addressed store, hash-verified

1159
1160// GetCreds returns the access creds for the client
1161func (c *Client) GetCreds() (credentials.Value, error) {
1162 if c.credsProvider == nil {
1163 return credentials.Value{}, errors.New("no credentials provider")
1164 }
1165 return c.credsProvider.GetWithContext(c.CredContext())
1166}

Callers

nothing calls this directly

Calls 2

CredContextMethod · 0.95
GetWithContextMethod · 0.80

Tested by

no test coverage detected