diff --git a/cli/command/cli.go b/cli/command/cli.go index 8b5780d6b7..fb3fb57934 100644 --- a/cli/command/cli.go +++ b/cli/command/cli.go @@ -56,7 +56,6 @@ type Cli interface { CurrentContext() string DockerEndpoint() docker.Endpoint TelemetryClient - DeprecatedNotaryClient DeprecatedManifestClient } diff --git a/cli/command/cli_deprecated.go b/cli/command/cli_deprecated.go index 15fac1a6e3..90137f2220 100644 --- a/cli/command/cli_deprecated.go +++ b/cli/command/cli_deprecated.go @@ -7,18 +7,9 @@ import ( "github.com/docker/cli/cli/config" manifeststore "github.com/docker/cli/cli/manifest/store" registryclient "github.com/docker/cli/cli/registry/client" - "github.com/docker/cli/cli/trust" "github.com/docker/docker/api/types/registry" - notaryclient "github.com/theupdateframework/notary/client" ) -type DeprecatedNotaryClient interface { - // NotaryClient provides a Notary Repository to interact with signed metadata for an image - // - // Deprecated: use [trust.GetNotaryRepository] instead. This method is no longer used and will be removed in the next release. - NotaryClient(imgRefAndAuth trust.ImageRefAndAuth, actions []string) (notaryclient.Repository, error) -} - type DeprecatedManifestClient interface { // ManifestStore returns a store for local manifests // @@ -32,11 +23,6 @@ type DeprecatedManifestClient interface { RegistryClient(bool) registryclient.RegistryClient } -// NotaryClient provides a Notary Repository to interact with signed metadata for an image -func (cli *DockerCli) NotaryClient(imgRefAndAuth trust.ImageRefAndAuth, actions []string) (notaryclient.Repository, error) { - return trust.GetNotaryRepository(cli.In(), cli.Out(), UserAgent(), imgRefAndAuth.RepoInfo(), imgRefAndAuth.AuthConfig(), actions...) -} - // ManifestStore returns a store for local manifests // // Deprecated: use [manifeststore.NewStore] instead. This method is no longer used and will be removed in the next release.