File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ type configEnv struct {
5656 AuthConfigs map [string ]configEnvAuth `json:"auths"`
5757}
5858
59- // dockerEnvConfig is an environment variable that contains a JSON encoded
59+ // DockerEnvConfigKey is an environment variable that contains a JSON encoded
6060// credential config. It only supports storing the credentials as a base64
6161// encoded string in the format base64("username:pat").
6262//
@@ -71,7 +71,7 @@ type configEnv struct {
7171// }
7272// }
7373// }
74- const dockerEnvConfig = "DOCKER_AUTH_CONFIG"
74+ const DockerEnvConfigKey = "DOCKER_AUTH_CONFIG"
7575
7676// ProxyConfig contains proxy configuration settings
7777type ProxyConfig struct {
@@ -296,7 +296,7 @@ func (configFile *ConfigFile) GetCredentialsStore(registryHostname string) crede
296296 store = newNativeStore (configFile , helper )
297297 }
298298
299- envConfig := os .Getenv (dockerEnvConfig )
299+ envConfig := os .Getenv (DockerEnvConfigKey )
300300 if envConfig == "" {
301301 return store
302302 }
You can’t perform that action at this time.
0 commit comments