Rename Name method of Repository to Named
This makes code that gets the name as a string read like repo.Named().Name() instead of repo.Name().Name(). Requested in https://github.com/docker/docker/pull/19887#discussion_r51479753 Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
@@ -146,7 +146,7 @@ type repository struct {
|
||||
name reference.Named
|
||||
}
|
||||
|
||||
func (r *repository) Name() reference.Named {
|
||||
func (r *repository) Named() reference.Named {
|
||||
return r.name
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ func (r *repository) Tags(ctx context.Context) distribution.TagService {
|
||||
client: r.client,
|
||||
ub: r.ub,
|
||||
context: r.context,
|
||||
name: r.Name(),
|
||||
name: r.Named(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user