(host string)
| 400 | } |
| 401 | |
| 402 | func isDockerHubRegistry(host string) bool { |
| 403 | switch normalizeRegistryHost(host) { |
| 404 | case "docker.io", "index.docker.io", "registry-1.docker.io": |
| 405 | return true |
| 406 | default: |
| 407 | return false |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | func extractRegistryHost(imageName string) (string, bool) { |
| 412 | parts := strings.Split(imageName, "/") |
no test coverage detected