This method is a shallow wrapper around manifeststore.NewStore, but
due to its signature resulted in various dependencies becoming a dependency
of the "command" package. Consequence of this was that cli-plugins, which
need the cli/command package, would also get those dependencies. It is no
longer used, and was deprecated in e32d5d56f5.
This patch removes the ManifestStore method from the interface
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
28 lines
1005 B
Go
28 lines
1005 B
Go
package command
|
|
|
|
import (
|
|
"context"
|
|
|
|
registryclient "github.com/docker/cli/cli/registry/client"
|
|
"github.com/docker/docker/api/types/registry"
|
|
)
|
|
|
|
type DeprecatedManifestClient interface {
|
|
// RegistryClient returns a client for communicating with a Docker distribution
|
|
// registry.
|
|
//
|
|
// Deprecated: use [registryclient.NewRegistryClient]. This method is no longer used and will be removed in the next release.
|
|
RegistryClient(bool) registryclient.RegistryClient
|
|
}
|
|
|
|
// RegistryClient returns a client for communicating with a Docker distribution
|
|
// registry
|
|
//
|
|
// Deprecated: use [registryclient.NewRegistryClient]. This method is no longer used and will be removed in the next release.
|
|
func (cli *DockerCli) RegistryClient(allowInsecure bool) registryclient.RegistryClient {
|
|
resolver := func(ctx context.Context, index *registry.IndexInfo) registry.AuthConfig {
|
|
return ResolveAuthConfig(cli.ConfigFile(), index)
|
|
}
|
|
return registryclient.NewRegistryClient(resolver, UserAgent(), allowInsecure)
|
|
}
|