Class CliDockerClient.DockerImageDetails
- java.lang.Object
-
- com.google.cloud.tools.jib.docker.CliDockerClient.DockerImageDetails
-
- All Implemented Interfaces:
ImageDetails
,JsonTemplate
- Enclosing class:
- CliDockerClient
public static class CliDockerClient.DockerImageDetails extends java.lang.Object implements JsonTemplate, ImageDetails
Contains the size, image ID, and diff IDs of an image inspected withdocker inspect
.
-
-
Constructor Summary
Constructors Constructor Description DockerImageDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DescriptorDigest>
getDiffIds()
Return a list of diff ids of the layers in the image.DescriptorDigest
getImageId()
long
getSize()
-
-
-
Method Detail
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceImageDetails
-
getImageId
public DescriptorDigest getImageId() throws java.security.DigestException
- Specified by:
getImageId
in interfaceImageDetails
- Throws:
java.security.DigestException
-
getDiffIds
public java.util.List<DescriptorDigest> getDiffIds() throws java.security.DigestException
Return a list of diff ids of the layers in the image.- Specified by:
getDiffIds
in interfaceImageDetails
- Returns:
- a list of diff ids
- Throws:
java.security.DigestException
- if a digest is invalid
-
-