GetAuthConfig for a repository from the credential store
(registryHostname string)
| 386 | |
| 387 | // GetAuthConfig for a repository from the credential store |
| 388 | func (c *ConfigFile) GetAuthConfig(registryHostname string) (types.AuthConfig, error) { |
| 389 | acKey := getAuthConfigKey(registryHostname) |
| 390 | return c.GetCredentialsStore(acKey).Get(acKey) |
| 391 | } |
| 392 | |
| 393 | // getConfiguredCredentialStore returns the credential helper configured for the |
| 394 | // given registry, the default credsStore, or the empty string if neither are |