Skip to content

Commit dd4dc5f

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

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

cli/command/image/trust.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +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-
// TrustedPush handles content trust pushing of an image.
45-
//
46-
// Deprecated: this function was only used internally and will be removed in the next release.
47-
func TrustedPush(ctx context.Context, cli command.Cli, repoInfo *registry.RepositoryInfo, ref reference.Named, authConfig registrytypes.AuthConfig, options image.PushOptions) error {
48-
responseBody, err := cli.Client().ImagePush(ctx, reference.FamiliarString(ref), options)
49-
if err != nil {
50-
return err
51-
}
52-
53-
defer responseBody.Close()
54-
55-
return trust.PushTrustedReference(ctx, cli, repoInfo, ref, authConfig, responseBody, command.UserAgent())
56-
}
57-
5844
// PushTrustedReference pushes a canonical reference to the trust server.
5945
//
6046
// Deprecated: use [trust.PushTrustedReference] instead. this function was only used internally and will be removed in the next release.

0 commit comments

Comments
 (0)