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

Function getConfiguredCredentialStore

cli/config/configfile/file.go:396–403  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

394// given registry, the default credsStore, or the empty string if neither are
395// configured.
396func 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.

Callers 1

GetCredentialsStoreMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…