github.com/rumpl/bof@v23.0.0-rc.2+incompatible/registry/config_unix.go (about) 1 //go:build !windows 2 // +build !windows 3 4 package registry // import "github.com/docker/docker/registry" 5 6 // defaultCertsDir is the platform-specific default directory where certificates 7 // are stored. On Linux, it may be overridden through certsDir, for example, when 8 // running in rootless mode. 9 const defaultCertsDir = "/etc/docker/certs.d" 10 11 // cleanPath is used to ensure that a directory name is valid on the target 12 // platform. It will be passed in something *similar* to a URL such as 13 // https:/index.docker.io/v1. Not all platforms support directory names 14 // which contain those characters (such as : on Windows) 15 func cleanPath(s string) string { 16 return s 17 }