public class ImageReference
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRegistry() |
java.lang.String |
getRepository() |
java.lang.String |
getTag() |
static boolean |
isValidRegistry(java.lang.String registry) |
static boolean |
isValidRepository(java.lang.String repository) |
static boolean |
isValidTag(java.lang.String tag) |
static ImageReference |
of(java.lang.String registry,
java.lang.String repository,
java.lang.String tag) |
static ImageReference |
parse(java.lang.String reference) |
java.lang.String |
toString() |
java.lang.String |
toStringWithTag() |
boolean |
usesDefaultTag() |
public static ImageReference parse(java.lang.String reference) throws InvalidImageReferenceException
reference - the string to parseImageReference parsed from the stringInvalidImageReferenceException - if reference is formatted incorrectlypublic static ImageReference of(@Nullable java.lang.String registry, java.lang.String repository, @Nullable java.lang.String tag)
registry - the image registryrepository - the image repositorytag - the image tagImageReference built from the given registry, repository, and tagpublic static boolean isValidRegistry(java.lang.String registry)
registry - the registry to checktrue if is a valid registry; false otherwisepublic static boolean isValidRepository(java.lang.String repository)
repository - the repository to checktrue if is a valid repository; false otherwisepublic static boolean isValidTag(java.lang.String tag)
tag - the tag to checktrue if is a valid tag; false otherwisepublic java.lang.String getRegistry()
public java.lang.String getRepository()
public java.lang.String getTag()
public boolean usesDefaultTag()
public java.lang.String toString()
toString in class java.lang.Objectparse(java.lang.String))public java.lang.String toStringWithTag()