ab35df454d
Removed pre-go1.17 build-tags with go fix; go mod init go fix -mod=readonly ./... rm go.mod Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
16 lines
646 B
Go
16 lines
646 B
Go
//go:build !windows
|
|
|
|
package registry // import "github.com/docker/docker/registry"
|
|
|
|
// defaultCertsDir is the platform-specific default directory where certificates
|
|
// are stored. On Linux, it may be overridden through certsDir, for example, when
|
|
// running in rootless mode.
|
|
const defaultCertsDir = "/etc/docker/certs.d"
|
|
|
|
// cleanPath is used to ensure that a directory name is valid on the target
|
|
// platform. It will be passed in something *similar* to a URL such as
|
|
// https:/index.docker.io/v1. Not all platforms support directory names
|
|
// which contain those characters (such as : on Windows)
|
|
func cleanPath(s string) string {
|
|
return s
|
|
}
|