Allow private V2 registry endpoints

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan 2014-12-19 14:44:18 -08:00
parent 751a1a8dd0
commit 6f36ce3a01
3 changed files with 22 additions and 14 deletions

View file

@ -10,6 +10,7 @@ import (
"strings"
log "github.com/Sirupsen/logrus"
"github.com/docker/docker/registry/v2"
)
// for mocking in unit tests
@ -103,6 +104,7 @@ type Endpoint struct {
Version APIVersion
IsSecure bool
AuthChallenges []*AuthorizationChallenge
URLBuilder *v2.URLBuilder
}
// Get the formated URL for the root of this registry Endpoint