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