mirror of
https://github.com/docker/cli.git
synced 2026-09-28 02:06:53 -04:00
internal/registryclient: repositoryEndpoint: memoize repoName
- Parse/format the repository name when constructing and store the result. - Remove the Name() accessor, as this type is only used internally, and no longer had any special handling. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -221,7 +221,7 @@ func (c *client) iterateEndpoints(ctx context.Context, namedRef reference.Named,
|
||||
return err
|
||||
}
|
||||
|
||||
repoName := reference.TrimNamed(namedRef)
|
||||
repoName := reference.Path(reference.TrimNamed(namedRef))
|
||||
indexInfo := registry.NewIndexInfo(namedRef)
|
||||
|
||||
confirmedTLSRegistries := make(map[string]bool)
|
||||
|
||||
Reference in New Issue
Block a user