Skip to content

Commit 3262107

Browse files
committed
cli/config: export const dockerEnvConfig
Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
1 parent 8403869 commit 3262107

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cli/config/configfile/file.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
7777
type 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
}

0 commit comments

Comments
 (0)