MCPcopy
hub / github.com/docker/compose / GetAuthConfigKey

Function GetAuthConfigKey

internal/registry/registry.go:39–44  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
39func GetAuthConfigKey(indexName string) string {
40 if indexName == IndexName || indexName == IndexHostname || indexName == DefaultRegistryHost {
41 return IndexServer
42 }
43 return indexName
44}

Callers 3

pushServiceImageMethod · 0.92
encodedAuthFunction · 0.92
NewResolverFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected