Class ImagePlatform
java.lang.Object
org.springframework.boot.buildpack.platform.docker.ImagePlatform
A platform specification for a Docker image.
- Since:
- 4.0.0
- Author:
- Scott Frederick
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ImagePlatformCreate a newImagePlatformmatching the platform information from the providedImage.inthashCode()static ImagePlatformCreate a newImagePlatformfrom the given value in the formos[/architecture[/variant]].toJson()Return a JSON-encoded representation of this platform.toString()
-
Method Details
-
equals
-
hashCode
-
toString
-
of
Create a newImagePlatformfrom the given value in the formos[/architecture[/variant]].- Parameters:
value- the value to parse- Returns:
- an
ImagePlatforminstance
-
from
Create a newImagePlatformmatching the platform information from the providedImage.- Parameters:
image- the image to get platform information from- Returns:
- an
ImagePlatforminstance
-
toJson
Return a JSON-encoded representation of this platform.- Returns:
- the JSON string
-