Skip to content

Commit 481e792

Browse files
committed
cli/command/image: remove deprecated AuthResolver utility
This function was used to share it between "trust" and "image", but was only a shallow wrapper, so split the implementations where used. It was deprecated in 7ad113c and is no longer used. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 6bc7ed8 commit 481e792

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cli/command/image/trust.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,6 @@ func convertTarget(t client.Target) (target, error) {
211211
}, nil
212212
}
213213

214-
// AuthResolver returns an auth resolver function from a [config.Provider].
215-
//
216-
// Deprecated: this function was only used internally and will be removed in the next release.
217-
func AuthResolver(dockerCLI config.Provider) func(ctx context.Context, index *registrytypes.IndexInfo) registrytypes.AuthConfig {
218-
return authResolver(dockerCLI)
219-
}
220-
221214
// authResolver returns an auth resolver function from a [config.Provider].
222215
func authResolver(dockerCLI config.Provider) func(ctx context.Context, index *registrytypes.IndexInfo) registrytypes.AuthConfig {
223216
return func(ctx context.Context, index *registrytypes.IndexInfo) registrytypes.AuthConfig {

0 commit comments

Comments
 (0)