New initializes an empty configuration file for the given filename 'fn'
(fn string)
| 113 | |
| 114 | // New initializes an empty configuration file for the given filename 'fn' |
| 115 | func 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 |
no outgoing calls