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
-
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 Imageof(InputStream content) Create a newImageinstance 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 newImageinstance from the specified JSON content.- Parameters:
content- the JSON content- Returns:
- a new
Imageinstance - Throws:
IOException- on IO error
-