Package com.google.cloud.tools.jib.image
Class ReferenceNoDiffIdLayer
- java.lang.Object
-
- com.google.cloud.tools.jib.image.ReferenceNoDiffIdLayer
-
-
Constructor Summary
Constructors Constructor Description ReferenceNoDiffIdLayer(BlobDescriptor blobDescriptor)
Instantiate with aBlobDescriptor
and no diff ID.
-
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
-
ReferenceNoDiffIdLayer
public ReferenceNoDiffIdLayer(BlobDescriptor blobDescriptor)
Instantiate with aBlobDescriptor
and no diff ID.- Parameters:
blobDescriptor
- the blob descriptor
-
-
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
-
-