public final class ImageReference extends Object
All methods in this class return null or are no-ops. This class is included for compilation reasons and should never make to a runtime environment.
| Modifier and Type | Method and Description |
|---|---|
String |
getDigest()
Return the digest from the reference or
null. |
String |
getDomain()
Return the domain for this image name.
|
String |
getName()
Return the name of this image.
|
String |
getTag()
Return the tag from the reference or
null. |
static ImageReference |
of(String value)
Create a new
ImageReference from the given value. |
public static ImageReference of(String value)
ImageReference from the given value. The following value forms
can be used:
name (maps to docker.io/library/name)domain/namedomain:port/namedomain:port/name:tagdomain:port/name@digestvalue - the value to parseImageReference instancepublic String getDomain()
public String getName()
public String getTag()
null.public String getDigest()
null.Copyright © 2010–2025. All rights reserved.