getConfiguredCredentialStore returns the credential helper configured for the given registry, the default credsStore, or the empty string if neither are configured.
(c *ConfigFile, registryHostname string)
| 394 | // given registry, the default credsStore, or the empty string if neither are |
| 395 | // configured. |
| 396 | func getConfiguredCredentialStore(c *ConfigFile, registryHostname string) string { |
| 397 | if c.CredentialHelpers != nil && registryHostname != "" { |
| 398 | if helper, exists := c.CredentialHelpers[registryHostname]; exists { |
| 399 | return helper |
| 400 | } |
| 401 | } |
| 402 | return c.CredentialsStore |
| 403 | } |
| 404 | |
| 405 | // GetAllCredentials returns all of the credentials stored in all of the |
| 406 | // configured credential stores. |
no outgoing calls
no test coverage detected
searching dependent graphs…