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)
Builds an image reference from a registry, repository, and tag.
|
static ImageReference |
parse(String reference)
Parses an image reference.
|
String |
toString() |
public static ImageReference parse(String reference) throws InvalidImageReferenceException
InvalidImageReferenceExceptionpublic static ImageReference of(@Nullable String registry, String repository, @Nullable String tag)
public static boolean isValidRegistry(String registry)
true if is a valid registry; false otherwisepublic static boolean isValidRepository(String repository)
true if is a valid repository; false otherwisepublic static boolean isValidTag(String tag)
true if is a valid tag; false otherwisepublic String getRegistry()
public String getRepository()
public String getTag()
public String toString()
toString in class Objectparse(java.lang.String))Copyright © 2018. All rights reserved.