github.com/mheon/docker@v0.11.2-0.20150922122814-44f47903a831/registry/config_windows.go (about) 1 package registry 2 3 import ( 4 "os" 5 "path/filepath" 6 "strings" 7 ) 8 9 const ( 10 // DefaultV1Registry is the URI of the default v1 registry 11 DefaultV1Registry = "https://registry-win-tp3.docker.io" 12 13 // DefaultV2Registry is the URI of the default (official) v2 registry. 14 // This is the windows-specific endpoint. 15 // 16 // Currently it is a TEMPORARY link that allows Microsoft to continue 17 // development of Docker Engine for Windows. 18 DefaultV2Registry = "https://registry-win-tp3.docker.io" 19 ) 20 21 // CertsDir is the directory where certificates are stored 22 var CertsDir = os.Getenv("programdata") + `\docker\certs.d` 23 24 // cleanPath is used to ensure that a directory name is valid on the target 25 // platform. It will be passed in something *similar* to a URL such as 26 // https:\index.docker.io\v1. Not all platforms support directory names 27 // which contain those characters (such as : on Windows) 28 func cleanPath(s string) string { 29 return filepath.FromSlash(strings.Replace(s, ":", "", -1)) 30 }