public final class ImageUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getImage(Optional<String> registry,
String repository,
String name,
String tag)
Create an image from the individual parts.
|
static String |
getName(String image)
Return the docker image name.
|
static String |
getRegistry(String image)
Return the registry part of the docker image.
|
static String |
getRepository(String image)
Return the docker image repository.
|
static String |
getTag(String image)
Return the tag of the image.
|
static boolean |
hasRegistry(String image) |
public static String getImage(Optional<String> registry, String repository, String name, String tag)
registry - The registry.repository - The repository.name - The name.tag - The tag.public static boolean hasRegistry(String image)
public static String getRegistry(String image)
image - The actual docker image.public static String getRepository(String image)
image - The docker image.public static String getName(String image)
image - The docker image.Copyright © 2020 JBoss by Red Hat. All rights reserved.