|
@@ -20,6 +20,26 @@ type Options struct {
|
|
|
InsecureRegistries opts.ListOpts
|
|
|
}
|
|
|
|
|
|
+const (
|
|
|
+ // DefaultNamespace is the default namespace
|
|
|
+ DefaultNamespace = "docker.io"
|
|
|
+ // DefaultRegistryVersionHeader is the name of the default HTTP header
|
|
|
+ // that carries Registry version info
|
|
|
+ DefaultRegistryVersionHeader = "Docker-Distribution-Api-Version"
|
|
|
+ // DefaultV1Registry is the URI of the default v1 registry
|
|
|
+ DefaultV1Registry = "https://index.docker.io"
|
|
|
+
|
|
|
+ // IndexServer is the v1 registry server used for user auth + account creation
|
|
|
+ IndexServer = DefaultV1Registry + "/v1/"
|
|
|
+ // IndexName is the name of the index
|
|
|
+ IndexName = "docker.io"
|
|
|
+
|
|
|
+ // NotaryServer is the endpoint serving the Notary trust server
|
|
|
+ NotaryServer = "https://notary.docker.io"
|
|
|
+
|
|
|
+ // IndexServer = "https://registry-stage.hub.docker.com/v1/"
|
|
|
+)
|
|
|
+
|
|
|
var (
|
|
|
// ErrInvalidRepositoryName is an error returned if the repository name did
|
|
|
// not have the correct form
|