Package com.google.cloud.tools.jib.image
Class ReferenceLayer
- java.lang.Object
-
- com.google.cloud.tools.jib.image.ReferenceLayer
-
-
Constructor Summary
Constructors Constructor Description ReferenceLayer(BlobDescriptor blobDescriptor, DescriptorDigest diffId)
Instantiate with aBlobDescriptor
and 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
-
ReferenceLayer
public ReferenceLayer(BlobDescriptor blobDescriptor, DescriptorDigest diffId)
Instantiate with aBlobDescriptor
and diff ID.- Parameters:
blobDescriptor
- the blob descriptordiffId
- the diff ID
-
-
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()
Description copied from interface:Layer
Returns this layer's diff ID.
-
-