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
ALayer
reference 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 Blob
getBlob()
Returns this layer's contents.BlobDescriptor
getBlobDescriptor()
Returns this layer's content descriptor.DescriptorDigest
getDiffId()
Returns this layer's diff ID.
-
-
-
Constructor Detail
-
DigestOnlyLayer
public DigestOnlyLayer(DescriptorDigest digest)
Instantiate with aDescriptorDigest
.- Parameters:
digest
- the digest to instantiate theDigestOnlyLayer
from
-
-
Method Detail
-
getBlob
public Blob getBlob() throws LayerPropertyNotFoundException
Description copied from interface:Layer
Returns this layer's contents.- Specified by:
getBlob
in interfaceLayer
- Returns:
- the layer's content BLOB
- Throws:
LayerPropertyNotFoundException
- if not available
-
getBlobDescriptor
public BlobDescriptor getBlobDescriptor()
Description copied from interface:Layer
Returns this layer's content descriptor.- Specified by:
getBlobDescriptor
in interfaceLayer
- Returns:
- the layer's content
BlobDescriptor
-
getDiffId
public DescriptorDigest getDiffId() throws LayerPropertyNotFoundException
Description copied from interface:Layer
Returns this layer's diff ID.- Specified by:
getDiffId
in interfaceLayer
- Returns:
- the layer's diff ID
- Throws:
LayerPropertyNotFoundException
- if not available
-
-