remoteName returns the repository component of the full name, like "library/ubuntu"
(r reference.Named)
| 148 | |
| 149 | // remoteName returns the repository component of the full name, like "library/ubuntu" |
| 150 | func remoteName(r reference.Named) string { |
| 151 | _, remoteName := splitHostname(r.Name()) |
| 152 | return remoteName |
| 153 | } |
| 154 | |
| 155 | // splitHostname splits a repository name to hostname and remotename string. |
| 156 | // If no valid hostname is found, the default hostname is used. Repository name |
no test coverage detected