Class Image
java.lang.Object
org.springframework.boot.buildpack.platform.json.MappedObject
org.springframework.boot.buildpack.platform.docker.type.Image
Image details as returned from
Docker inspect
.- Since:
- 2.3.0
- Author:
- Phillip Webb
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.boot.buildpack.platform.json.MappedObject
MappedObject.ContentReader<C>
-
Method Summary
Modifier and TypeMethodDescriptionReturn image config information.Return the digests of the image.Return the layer IDs contained in the image.getOs()
Return the OS of the image.static Image
of
(InputStream content) Create a newImage
instance from the specified JSON content.
-
Method Details
-
getDigests
Return the digests of the image.- Returns:
- the image digests
-
getConfig
Return image config information.- Returns:
- the image config
-
getLayers
Return the layer IDs contained in the image.- Returns:
- the layer IDs.
-
getOs
Return the OS of the image.- Returns:
- the image OS
-
of
Create a newImage
instance from the specified JSON content.- Parameters:
content
- the JSON content- Returns:
- a new
Image
instance - Throws:
IOException
- on IO error
-