Skip to content

Commit

Permalink
Merge pull request #15694 from dmage/docker-distribution-2.6.2
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

rebase to Docker Distribution v2.6.2
  • Loading branch information
openshift-merge-robot committed Aug 31, 2017
2 parents 5f0c7b2 + e6bc3b6 commit 21b1f8f
Show file tree
Hide file tree
Showing 145 changed files with 5,986 additions and 6,892 deletions.
341 changes: 251 additions & 90 deletions Godeps/Godeps.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pkg/dockerregistry/testutil/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/docker/distribution/reference"
distclient "github.com/docker/distribution/registry/client"
"github.com/docker/distribution/registry/client/auth"
"github.com/docker/distribution/registry/client/auth/challenge"
"github.com/docker/distribution/registry/client/transport"
"github.com/docker/libtrust"

Expand Down Expand Up @@ -227,7 +228,7 @@ func CreateAndUploadTestManifest(

var rt http.RoundTripper
if creds != nil {
challengeManager := auth.NewSimpleChallengeManager()
challengeManager := challenge.NewSimpleManager()
_, err := ping(challengeManager, serverURL.String()+"/v2/", "")
if err != nil {
return "", "", "", nil, err
Expand Down
5 changes: 3 additions & 2 deletions pkg/dockerregistry/testutil/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/docker/distribution/reference"
distclient "github.com/docker/distribution/registry/client"
"github.com/docker/distribution/registry/client/auth"
"github.com/docker/distribution/registry/client/auth/challenge"
"github.com/docker/distribution/registry/client/transport"
imageapiv1 "github.com/openshift/origin/pkg/image/apis/image/v1"
)
Expand All @@ -39,7 +40,7 @@ func UploadBlob(

var rt http.RoundTripper
if creds != nil {
challengeManager := auth.NewSimpleChallengeManager()
challengeManager := challenge.NewSimpleManager()
_, err := ping(challengeManager, serverURL.String()+"/v2/", "")
if err != nil {
return distribution.Descriptor{}, err
Expand Down Expand Up @@ -232,7 +233,7 @@ func (tcs *testCredentialStore) SetRefreshToken(u *url.URL, service string, toke

// ping pings the provided endpoint to determine its required authorization challenges.
// If a version header is provided, the versions will be returned.
func ping(manager auth.ChallengeManager, endpoint, versionHeader string) ([]auth.APIVersion, error) {
func ping(manager challenge.Manager, endpoint, versionHeader string) ([]auth.APIVersion, error) {
resp, err := http.Get(endpoint)
if err != nil {
return nil, err
Expand Down
5 changes: 3 additions & 2 deletions pkg/image/importer/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/docker/distribution/registry/api/errcode"
registryclient "github.com/docker/distribution/registry/client"
"github.com/docker/distribution/registry/client/auth"
"github.com/docker/distribution/registry/client/auth/challenge"
"github.com/docker/distribution/registry/client/transport"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand All @@ -45,14 +46,14 @@ func NewContext(transport, insecureTransport http.RoundTripper) Context {
return Context{
Transport: transport,
InsecureTransport: insecureTransport,
Challenges: auth.NewSimpleChallengeManager(),
Challenges: challenge.NewSimpleManager(),
}
}

type Context struct {
Transport http.RoundTripper
InsecureTransport http.RoundTripper
Challenges auth.ChallengeManager
Challenges challenge.Manager
}

func (c Context) WithCredentials(credentials auth.CredentialStore) RepositoryRetriever {
Expand Down
12 changes: 1 addition & 11 deletions vendor/github.com/denverdino/aliyungo/common/regions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/github.com/docker/distribution/.mailmap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 43 additions & 8 deletions vendor/github.com/docker/distribution/AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/docker/distribution/BUILDING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 84 additions & 5 deletions vendor/github.com/docker/distribution/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 21b1f8f

Please sign in to comment.