MCPcopy Index your code
hub / github.com/docker/docker-agent / Load

Function Load

pkg/userconfig/userconfig.go:211–213  ·  view source on GitHub ↗

Load loads the user configuration from the config file. If the config file doesn't exist but a legacy aliases.yaml does, the aliases are migrated to the new config file.

()

Source from the content-addressed store, hash-verified

209// If the config file doesn't exist but a legacy aliases.yaml does,
210// the aliases are migrated to the new config file.
211func Load() (*Config, error) {
212 return loadFrom(Path(), legacyAliasesPath())
213}
214
215func loadFrom(configPath, legacyPath string) (*Config, error) {
216 config, err := readConfig(configPath)

Calls 3

loadFromFunction · 0.85
legacyAliasesPathFunction · 0.85
PathFunction · 0.70