github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/registry/config_unix.go (about)

     1  // +build !windows
     2  
     3  package registry // import "github.com/demonoid81/moby/registry"
     4  
     5  var (
     6  	// CertsDir is the directory where certificates are stored
     7  	CertsDir = "/etc/docker/certs.d"
     8  )
     9  
    10  // cleanPath is used to ensure that a directory name is valid on the target
    11  // platform. It will be passed in something *similar* to a URL such as
    12  // https:/index.docker.io/v1. Not all platforms support directory names
    13  // which contain those characters (such as : on Windows)
    14  func cleanPath(s string) string {
    15  	return s
    16  }