MCPcopy Index your code
hub / github.com/devspace-sh/devspace / LoadDockerConfig

Function LoadDockerConfig

pkg/devspace/docker/config.go:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20var configDirOnce sync.Once
21
22func LoadDockerConfig() (*configfile.ConfigFile, error) {
23 configDirOnce.Do(func() {
24 if configDir == "" {
25 configDir = filepath.Join(homedir.Get(), dockerFileFolder)
26 }
27 })
28
29 return config.Load(configDir)
30}
31
32// GetAllAuthConfigs returns every auth config found in the docker config
33func GetAllAuthConfigs() (map[string]dockerregistry.AuthConfig, error) {

Callers 4

LoginMethod · 0.85
getDefaultAuthConfigFunction · 0.85
GetAllAuthConfigsFunction · 0.85
ParseProxyConfigMethod · 0.85

Calls 2

LoadMethod · 0.65
GetMethod · 0.45

Tested by

no test coverage detected