Class ImageReference
java.lang.Object
org.springframework.boot.docker.compose.core.ImageReference
A reference to a Docker image of the form
"imagename[:tag|@digest]"
.- Since:
- 2.3.0
- Author:
- Phillip Webb, Scott Frederick
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the digest from the reference ornull
.Return the domain for this image name.getName()
Return the name of this image.getTag()
Return the tag from the reference ornull
.int
hashCode()
static ImageReference
Create a newImageReference
from the given value.toString()
-
Method Details
-
getDomain
Return the domain for this image name.- Returns:
- the domain
- See Also:
-
ImageName.getDomain()
-
getName
Return the name of this image.- Returns:
- the image name
- See Also:
-
ImageName.getName()
-
getTag
Return the tag from the reference ornull
.- Returns:
- the referenced tag
-
getDigest
Return the digest from the reference ornull
.- Returns:
- the referenced digest
-
equals
-
hashCode
public int hashCode() -
toString
-
of
Create a newImageReference
from the given value. The following value forms can be used:name
(maps todocker.io/library/name
)domain/name
domain:port/name
domain:port/name:tag
domain:port/name@digest
- Parameters:
value
- the value to parse- Returns:
- an
ImageReference
instance
-