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 TypeMethodDescriptionbooleanReturn 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.inthashCode()static ImageReferenceCreate a newImageReferencefrom 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 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
-