mirror of
https://github.com/docker/cli.git
synced 2026-09-28 02:06:53 -04:00
cli/registry/client: deprecate and move internal
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
|||||||
"github.com/docker/cli/cli/command"
|
"github.com/docker/cli/cli/command"
|
||||||
"github.com/docker/cli/cli/config"
|
"github.com/docker/cli/cli/config"
|
||||||
"github.com/docker/cli/cli/manifest/store"
|
"github.com/docker/cli/cli/manifest/store"
|
||||||
registryclient "github.com/docker/cli/cli/registry/client"
|
"github.com/docker/cli/internal/registryclient"
|
||||||
"github.com/moby/moby/api/types/registry"
|
"github.com/moby/moby/api/types/registry"
|
||||||
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"github.com/distribution/reference"
|
"github.com/distribution/reference"
|
||||||
manifesttypes "github.com/docker/cli/cli/manifest/types"
|
manifesttypes "github.com/docker/cli/cli/manifest/types"
|
||||||
"github.com/docker/cli/cli/registry/client"
|
"github.com/docker/cli/internal/registryclient"
|
||||||
"github.com/docker/distribution"
|
"github.com/docker/distribution"
|
||||||
"github.com/opencontainers/go-digest"
|
"github.com/opencontainers/go-digest"
|
||||||
)
|
)
|
||||||
@@ -45,4 +45,4 @@ func (c *fakeRegistryClient) PutManifest(ctx context.Context, ref reference.Name
|
|||||||
return digest.Digest(""), nil
|
return digest.Digest(""), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ client.RegistryClient = &fakeRegistryClient{}
|
var _ registryclient.RegistryClient = &fakeRegistryClient{}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/docker/cli/cli"
|
"github.com/docker/cli/cli"
|
||||||
"github.com/docker/cli/cli/command"
|
"github.com/docker/cli/cli/command"
|
||||||
"github.com/docker/cli/cli/manifest/types"
|
"github.com/docker/cli/cli/manifest/types"
|
||||||
registryclient "github.com/docker/cli/cli/registry/client"
|
"github.com/docker/cli/internal/registryclient"
|
||||||
"github.com/docker/distribution"
|
"github.com/docker/distribution"
|
||||||
"github.com/docker/distribution/manifest/manifestlist"
|
"github.com/docker/distribution/manifest/manifestlist"
|
||||||
"github.com/docker/distribution/manifest/ocischema"
|
"github.com/docker/distribution/manifest/ocischema"
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package client // Deprecated: this package was only used internally and will be removed in the next release.
|
||||||
|
|
||||||
|
import "github.com/docker/cli/internal/registryclient"
|
||||||
|
|
||||||
|
// RegistryClient is a client used to communicate with a Docker distribution
|
||||||
|
// registry.
|
||||||
|
//
|
||||||
|
// Deprecated: this interface was only used internally and will be removed in the next release.
|
||||||
|
type RegistryClient = registryclient.RegistryClient
|
||||||
|
|
||||||
|
// NewRegistryClient returns a new RegistryClient with a resolver
|
||||||
|
//
|
||||||
|
// Deprecated: this function was only used internally and will be removed in the next release.
|
||||||
|
func NewRegistryClient(resolver registryclient.AuthConfigResolver, userAgent string, insecure bool) registryclient.RegistryClient {
|
||||||
|
return registryclient.NewRegistryClient(resolver, userAgent, insecure)
|
||||||
|
}
|
||||||
|
|
||||||
|
// AuthConfigResolver returns Auth Configuration for an index
|
||||||
|
//
|
||||||
|
// Deprecated: this type was only used internally and will be removed in the next release.
|
||||||
|
type AuthConfigResolver = registryclient.AuthConfigResolver
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package client
|
package registryclient
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package client
|
package registryclient
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package client
|
package registryclient
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@@ -11,9 +11,9 @@ import (
|
|||||||
"github.com/docker/cli/cli/context/docker"
|
"github.com/docker/cli/cli/context/docker"
|
||||||
"github.com/docker/cli/cli/context/store"
|
"github.com/docker/cli/cli/context/store"
|
||||||
manifeststore "github.com/docker/cli/cli/manifest/store"
|
manifeststore "github.com/docker/cli/cli/manifest/store"
|
||||||
registryclient "github.com/docker/cli/cli/registry/client"
|
|
||||||
"github.com/docker/cli/cli/streams"
|
"github.com/docker/cli/cli/streams"
|
||||||
"github.com/docker/cli/cli/trust"
|
"github.com/docker/cli/cli/trust"
|
||||||
|
"github.com/docker/cli/internal/registryclient"
|
||||||
"github.com/moby/moby/client"
|
"github.com/moby/moby/client"
|
||||||
notaryclient "github.com/theupdateframework/notary/client"
|
notaryclient "github.com/theupdateframework/notary/client"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user