github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/registry/config_windows.go (about)

     1  package registry
     2  
     3  import (
     4  	"os"
     5  	"path/filepath"
     6  	"strings"
     7  
     8  	"github.com/spf13/pflag"
     9  )
    10  
    11  // CertsDir is the directory where certificates are stored
    12  var CertsDir = os.Getenv("programdata") + `\docker\certs.d`
    13  
    14  // cleanPath is used to ensure that a directory name is valid on the target
    15  // platform. It will be passed in something *similar* to a URL such as
    16  // https:\index.docker.io\v1. Not all platforms support directory names
    17  // which contain those characters (such as : on Windows)
    18  func cleanPath(s string) string {
    19  	return filepath.FromSlash(strings.Replace(s, ":", "", -1))
    20  }
    21  
    22  // installCliPlatformFlags handles any platform specific flags for the service.
    23  func (options *ServiceOptions) installCliPlatformFlags(flags *pflag.FlagSet) {
    24  	// No Windows specific flags.
    25  }