Class ImageUtil
- java.lang.Object
-
- io.quarkus.container.image.deployment.util.ImageUtil
-
public final class ImageUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetGroup(String image)Return the image group.static StringgetImage(Optional<String> registry, String group, String name, String tag)Create an image from the individual parts.static StringgetName(String image)Return the docker image name.static Optional<String>getRegistry(String image)Return the image registry.static StringgetRepository(String image)Return the docker image repository.static StringgetTag(String image)Return the tag of the image.
-
-
-
Method Detail
-
getImage
public static String getImage(Optional<String> registry, String group, String name, String tag)
Create an image from the individual parts.- Parameters:
registry- The registry.repository- The group.name- The name.tag- The tag.- Returns:
- The image.
-
getRegistry
public static Optional<String> getRegistry(String image)
Return the image registry.- Parameters:
image- The docker image.- Returns:
- The image registry.
-
getGroup
public static String getGroup(String image)
Return the image group.- Parameters:
image- The docker image.- Returns:
- The image group.
-
getRepository
public static String getRepository(String image)
Return the docker image repository.- Parameters:
image- The docker image.- Returns:
- The image repository.
-
getName
public static String getName(String image)
Return the docker image name.- Parameters:
image- The docker image.- Returns:
- The image name.
-
-