@@ -50,7 +50,7 @@ func Parse(address string) (*RegistryURL, error) {
5050 }
5151 // If it has no port, add the standard port explicitly
5252 if u .Port () == "" {
53- u .Host = u .Hostname () + ":" + standardHTTPSPort
53+ u .Host = u .Hostname () + ":" + StandardHTTPSPort
5454 }
5555 reg := & RegistryURL {URL : * u }
5656 queryParams := u .Query ()
@@ -74,7 +74,7 @@ type RegistryURL struct {
7474// CanonicalIdentifier returns the identifier expected to be used to save credentials to docker auth config
7575func (rn * RegistryURL ) CanonicalIdentifier () string {
7676 // If it is the docker index over https, port 443, on the /v1/ path, we use the docker fully qualified identifier
77- if rn .Scheme == string (schemeHTTPS ) && rn .Hostname () == "index.docker.io" && rn .Path == "/v1/" && rn .Port () == standardHTTPSPort ||
77+ if rn .Scheme == string (schemeHTTPS ) && rn .Hostname () == "index.docker.io" && rn .Path == "/v1/" && rn .Port () == StandardHTTPSPort ||
7878 rn .URL .String () == dockerIndexServer {
7979 return dockerIndexServer
8080 }
@@ -102,7 +102,7 @@ func (rn *RegistryURL) AllIdentifiers() []string {
102102
103103 // Docker behavior: if the domain was index.docker.io over 443, we are allowed to additionally read the canonical
104104 // docker credentials
105- if rn .Port () == standardHTTPSPort {
105+ if rn .Port () == StandardHTTPSPort {
106106 if rn .Hostname () == "index.docker.io" || rn .Hostname () == "registry-1.docker.io" {
107107 fullList = append (fullList , dockerIndexServer )
108108 }
@@ -116,7 +116,7 @@ func (rn *RegistryURL) AllIdentifiers() []string {
116116
117117 // Note that docker does not try to be smart wrt explicit port vs. implied port
118118 // If standard port, allow retrieving credentials from the variant without a port as well
119- if rn .Port () == standardHTTPSPort {
119+ if rn .Port () == StandardHTTPSPort {
120120 fullList = append (
121121 fullList ,
122122 rn .Hostname (),
0 commit comments