Package com.google.cloud.tools.jib.api
Class JibContainer
- java.lang.Object
-
- com.google.cloud.tools.jib.api.JibContainer
-
public class JibContainer extends java.lang.Object
The container built by Jib.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
DescriptorDigest
getDigest()
Gets the digest of the registry image manifest built by Jib.DescriptorDigest
getImageId()
Gets the digest of the container configuration built by Jib.java.util.Set<java.lang.String>
getTags()
Get the tags applied to the container.ImageReference
getTargetImage()
Get the target image that was built.int
hashCode()
boolean
isImagePushed()
Returns true if we pushed this image all the way to a registry.
-
-
-
Method Detail
-
getTargetImage
public ImageReference getTargetImage()
Get the target image that was built.- Returns:
- the target image reference.
-
isImagePushed
public boolean isImagePushed()
Returns true if we pushed this image all the way to a registry.- Returns:
- true if pushed.
-
getDigest
public DescriptorDigest getDigest()
Gets the digest of the registry image manifest built by Jib. This digest can be used to fetch a specific image from the registry in the formmyregistry/myimage@digest
.- Returns:
- the image digest
-
getImageId
public DescriptorDigest getImageId()
Gets the digest of the container configuration built by Jib.- Returns:
- the image ID
-
getTags
public java.util.Set<java.lang.String> getTags()
Get the tags applied to the container.- Returns:
- the set of all tags
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-