GetAuthConfigKey special-cases using the full index address of the official index as the AuthConfig key, and uses the (host)name[:port] for private indexes.
(indexName string)
| 37 | // GetAuthConfigKey special-cases using the full index address of the official |
| 38 | // index as the AuthConfig key, and uses the (host)name[:port] for private indexes. |
| 39 | func GetAuthConfigKey(indexName string) string { |
| 40 | if indexName == IndexName || indexName == IndexHostname || indexName == DefaultRegistryHost { |
| 41 | return IndexServer |
| 42 | } |
| 43 | return indexName |
| 44 | } |
no outgoing calls
no test coverage detected