Package com.google.cloud.tools.jib.image
Class DigestOnlyLayer
- java.lang.Object
-
- com.google.cloud.tools.jib.image.DigestOnlyLayer
-
- All Implemented Interfaces:
Layer
public class DigestOnlyLayer extends java.lang.Object implements Layer
ALayerreference that only has itsDescriptorDigest.
-
-
Constructor Summary
Constructors Constructor Description DigestOnlyLayer(DescriptorDigest digest)Instantiate with aDescriptorDigest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobgetBlob()Returns this layer's contents.BlobDescriptorgetBlobDescriptor()Returns this layer's content descriptor.DescriptorDigestgetDiffId()Returns this layer's diff ID.
-
-
-
Constructor Detail
-
DigestOnlyLayer
public DigestOnlyLayer(DescriptorDigest digest)
Instantiate with aDescriptorDigest.- Parameters:
digest- the digest to instantiate theDigestOnlyLayerfrom
-
-
Method Detail
-
getBlob
public Blob getBlob() throws LayerPropertyNotFoundException
Description copied from interface:LayerReturns this layer's contents.- Specified by:
getBlobin interfaceLayer- Returns:
- the layer's content BLOB
- Throws:
LayerPropertyNotFoundException- if not available
-
getBlobDescriptor
public BlobDescriptor getBlobDescriptor()
Description copied from interface:LayerReturns this layer's content descriptor.- Specified by:
getBlobDescriptorin interfaceLayer- Returns:
- the layer's content
BlobDescriptor
-
getDiffId
public DescriptorDigest getDiffId() throws LayerPropertyNotFoundException
Description copied from interface:LayerReturns this layer's diff ID.- Specified by:
getDiffIdin interfaceLayer- Returns:
- the layer's diff ID
- Throws:
LayerPropertyNotFoundException- if not available
-
-