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:
- 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable StringReturn the digest from the reference ornull.Return the domain for this image name.getName()Return the name of this image.@Nullable StringgetTag()Return the tag from the reference ornull.inthashCode()static ImageReferenceCreate a newImageReferencefrom the given value.toString()
-
Method Details
-
getDomain
-
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
-
toString
-
of
Create a newImageReferencefrom the given value. The following value forms can be used:name(maps todocker.io/library/name)domain/namedomain:port/namedomain:port/name:tagdomain:port/name@digest
- Parameters:
value- the value to parse- Returns:
- an
ImageReferenceinstance
-