(image string)
| 313 | } |
| 314 | |
| 315 | func getContainerNamePrefixForImage(image string) (string, error) { |
| 316 | basename := ImageReferenceGetBasename(image) |
| 317 | if basename == "" { |
| 318 | return "", &ImageError{image, ErrImageWithoutBasename} |
| 319 | } |
| 320 | |
| 321 | for _, distroObj := range supportedDistros { |
| 322 | if distroObj.ImageBasename != basename { |
| 323 | continue |
| 324 | } |
| 325 | |
| 326 | return distroObj.ContainerNamePrefix, nil |
| 327 | } |
| 328 | |
| 329 | return basename, nil |
| 330 | } |
| 331 | |
| 332 | func getDefaultImageForDistro(distro, release string) string { |
| 333 | if distro == "" { |
no test coverage detected
searching dependent graphs…