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

Function New

cli/config/configfile/file.go:115–123  ·  view source on GitHub ↗

New initializes an empty configuration file for the given filename 'fn'

(fn string)

Source from the content-addressed store, hash-verified

113
114// New initializes an empty configuration file for the given filename 'fn'
115func New(fn string) *ConfigFile {
116 return &ConfigFile{
117 AuthConfigs: make(map[string]types.AuthConfig),
118 HTTPHeaders: make(map[string]string),
119 Filename: fn,
120 Plugins: make(map[string]map[string]string),
121 Aliases: make(map[string]string),
122 }
123}
124
125// LoadFromReader reads the configuration data given and sets up the auth config
126// information with given directory and populates the receiver object

Calls

no outgoing calls