Move registry client internal (#4126)

This commit is contained in:
Milos Gajdos 2023-10-24 17:44:34 +01:00 committed by GitHub
commit f3ce7c46bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 15 additions and 15 deletions

View file

@ -11,9 +11,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/distribution/distribution/v3/registry/client" "github.com/distribution/distribution/v3/internal/client"
"github.com/distribution/distribution/v3/registry/client/auth/challenge" "github.com/distribution/distribution/v3/internal/client/auth/challenge"
"github.com/distribution/distribution/v3/registry/client/transport" "github.com/distribution/distribution/v3/internal/client/transport"
) )
var ( var (

View file

@ -9,8 +9,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/distribution/distribution/v3/registry/client/auth/challenge" "github.com/distribution/distribution/v3/internal/client/auth/challenge"
"github.com/distribution/distribution/v3/registry/client/transport" "github.com/distribution/distribution/v3/internal/client/transport"
"github.com/distribution/distribution/v3/testutil" "github.com/distribution/distribution/v3/testutil"
) )

View file

@ -8,8 +8,8 @@ import (
"mime" "mime"
"net/http" "net/http"
"github.com/distribution/distribution/v3/internal/client/auth/challenge"
"github.com/distribution/distribution/v3/registry/api/errcode" "github.com/distribution/distribution/v3/registry/api/errcode"
"github.com/distribution/distribution/v3/registry/client/auth/challenge"
) )
// ErrNoErrorsInBody is returned when an HTTP response body parses to an empty // ErrNoErrorsInBody is returned when an HTTP response body parses to an empty

View file

@ -15,8 +15,8 @@ import (
"time" "time"
"github.com/distribution/distribution/v3" "github.com/distribution/distribution/v3"
"github.com/distribution/distribution/v3/internal/client/transport"
v2 "github.com/distribution/distribution/v3/registry/api/v2" v2 "github.com/distribution/distribution/v3/registry/api/v2"
"github.com/distribution/distribution/v3/registry/client/transport"
"github.com/distribution/distribution/v3/registry/storage/cache" "github.com/distribution/distribution/v3/registry/storage/cache"
"github.com/distribution/distribution/v3/registry/storage/cache/memory" "github.com/distribution/distribution/v3/registry/storage/cache/memory"
"github.com/distribution/reference" "github.com/distribution/reference"

View file

@ -6,8 +6,8 @@ import (
"strings" "strings"
"github.com/distribution/distribution/v3/context" "github.com/distribution/distribution/v3/context"
"github.com/distribution/distribution/v3/registry/client/auth" "github.com/distribution/distribution/v3/internal/client/auth"
"github.com/distribution/distribution/v3/registry/client/auth/challenge" "github.com/distribution/distribution/v3/internal/client/auth/challenge"
) )
const challengeHeader = "Docker-Distribution-Api-Version" const challengeHeader = "Docker-Distribution-Api-Version"

View file

@ -7,9 +7,9 @@ import (
"testing" "testing"
"github.com/distribution/distribution/v3" "github.com/distribution/distribution/v3"
"github.com/distribution/distribution/v3/internal/client/auth"
"github.com/distribution/distribution/v3/internal/client/auth/challenge"
"github.com/distribution/distribution/v3/manifest/schema2" "github.com/distribution/distribution/v3/manifest/schema2"
"github.com/distribution/distribution/v3/registry/client/auth"
"github.com/distribution/distribution/v3/registry/client/auth/challenge"
"github.com/distribution/distribution/v3/registry/proxy/scheduler" "github.com/distribution/distribution/v3/registry/proxy/scheduler"
"github.com/distribution/distribution/v3/registry/storage" "github.com/distribution/distribution/v3/registry/storage"
"github.com/distribution/distribution/v3/registry/storage/cache/memory" "github.com/distribution/distribution/v3/registry/storage/cache/memory"

View file

@ -11,10 +11,10 @@ import (
"github.com/distribution/distribution/v3" "github.com/distribution/distribution/v3"
"github.com/distribution/distribution/v3/configuration" "github.com/distribution/distribution/v3/configuration"
dcontext "github.com/distribution/distribution/v3/context" dcontext "github.com/distribution/distribution/v3/context"
"github.com/distribution/distribution/v3/registry/client" "github.com/distribution/distribution/v3/internal/client"
"github.com/distribution/distribution/v3/registry/client/auth" "github.com/distribution/distribution/v3/internal/client/auth"
"github.com/distribution/distribution/v3/registry/client/auth/challenge" "github.com/distribution/distribution/v3/internal/client/auth/challenge"
"github.com/distribution/distribution/v3/registry/client/transport" "github.com/distribution/distribution/v3/internal/client/transport"
"github.com/distribution/distribution/v3/registry/proxy/scheduler" "github.com/distribution/distribution/v3/registry/proxy/scheduler"
"github.com/distribution/distribution/v3/registry/storage" "github.com/distribution/distribution/v3/registry/storage"
"github.com/distribution/distribution/v3/registry/storage/driver" "github.com/distribution/distribution/v3/registry/storage/driver"