public class DockerImageName extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getDigest() |
String |
getFullName()
Get the full name of this image, including the registry and tag
(e.g.
|
String |
getFullName(String optionalRegistry)
Get the full name of this image like
getFullName(String) does, but allow
an optional registry. |
String |
getNameWithoutTag()
Get the full name of this image, including the registry but without
any tag (e.g.
|
String |
getNameWithoutTag(String optionalRegistry)
Get the full name of this image like
getNameWithoutTag() does, but allow
an optional registry. |
String |
getRegistry() |
String |
getRepository() |
String |
getSimpleName()
Get the simple name of the image, which is the repository sans the user parts.
|
String |
getTag() |
String |
getUser()
Get the user (or "project") part of the image name.
|
boolean |
hasRegistry() |
static DockerImageName |
parseName(String imageName) |
static void |
validate(String imageName) |
public static DockerImageName parseName(String imageName) throws DockerGenException
DockerGenExceptionpublic static void validate(String imageName) throws DockerGenException
DockerGenExceptionpublic String getRepository()
public String getRegistry()
public String getTag()
public String getDigest()
public boolean hasRegistry()
public String getNameWithoutTag()
privateregistry:fabric8io/java)public String getNameWithoutTag(String optionalRegistry)
getNameWithoutTag() does, but allow
an optional registry. This registry is used when this image does not already
contain a registry.optionalRegistry - optional registry to use when this image does not provide
a registry. Can be null in which case no optional registry is used*null)public String getFullName()
privateregistry:fabric8io/java:7u53)public String getFullName(String optionalRegistry)
getFullName(String) does, but allow
an optional registry. This registry is used when this image does not already
contain a registry. If no tag was provided in the initial name, latest is used.optionalRegistry - optional registry to use when this image does not provide
a registry. Can be null in which case no optional registry is used*null).public String getUser()
null if no user is present in the namepublic String getSimpleName()
Copyright © 2024 WSO2. All rights reserved.