Merge pull request #6258 from thaJeztah/28.x_backport_remove_RepoNameForReference

[28.x backport] cli/registry/client: remove deprecated RepoNameForReference
This commit is contained in:
Paweł Gronowski
2025-08-14 10:22:59 +02:00
committed by GitHub
-7
View File
@@ -105,13 +105,6 @@ func getHTTPTransport(authConfig registrytypes.AuthConfig, endpoint registry.API
return transport.NewTransport(base, modifiers...), nil
}
// RepoNameForReference returns the repository name from a reference.
//
// Deprecated: this function is no longer used and will be removed in the next release.
func RepoNameForReference(ref reference.Named) (string, error) {
return reference.Path(reference.TrimNamed(ref)), nil
}
type existingTokenHandler struct {
token string
}