Skip to content

Commit 562b504

Browse files
committed
cli/command/image: remove deprecated PushTrustedReference
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent dd4dc5f commit 562b504

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

cli/command/image/trust.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ func newNotaryClient(cli command.Streams, imgRefAndAuth trust.ImageRefAndAuth) (
4141
return trust.GetNotaryRepository(cli.In(), cli.Out(), command.UserAgent(), imgRefAndAuth.RepoInfo(), imgRefAndAuth.AuthConfig(), "pull")
4242
}
4343

44-
// PushTrustedReference pushes a canonical reference to the trust server.
45-
//
46-
// Deprecated: use [trust.PushTrustedReference] instead. this function was only used internally and will be removed in the next release.
47-
func PushTrustedReference(ctx context.Context, ioStreams command.Streams, repoInfo *registry.RepositoryInfo, ref reference.Named, authConfig registrytypes.AuthConfig, in io.Reader) error {
48-
return pushTrustedReference(ctx, ioStreams, repoInfo, ref, authConfig, in)
49-
}
50-
5144
// pushTrustedReference pushes a canonical reference to the trust server.
5245
func pushTrustedReference(ctx context.Context, ioStreams command.Streams, repoInfo *registry.RepositoryInfo, ref reference.Named, authConfig registrytypes.AuthConfig, in io.Reader) error {
5346
return trust.PushTrustedReference(ctx, ioStreams, repoInfo, ref, authConfig, in, command.UserAgent())

0 commit comments

Comments
 (0)