MCPcopy Create free account
hub / github.com/docker/cli / GetAuthConfig

Method GetAuthConfig

cli/config/configfile/file.go:388–391  ·  view source on GitHub ↗

GetAuthConfig for a repository from the credential store

(registryHostname string)

Source from the content-addressed store, hash-verified

386
387// GetAuthConfig for a repository from the credential store
388func (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

Callers 9

GetAllCredentialsMethod · 0.95
ResolveAuthConfigFunction · 0.80
GetDefaultAuthConfigFunction · 0.80
getAuthFunction · 0.80
newRegistryClientFunction · 0.80
resolveAuthConfigFunction · 0.80

Calls 3

GetCredentialsStoreMethod · 0.95
getAuthConfigKeyFunction · 0.70
GetMethod · 0.65