Package com.google.cloud.tools.jib.image
Interface Layer
-
- All Known Implementing Classes:
CachedLayer
,DigestOnlyLayer
,ReferenceLayer
,ReferenceNoDiffIdLayer
public interface Layer
Represents a layer in an image. Implementations represent the various types of layers.An image layer consists of:
- Content BLOB
-
- The compressed archive (tarball gzip) of the partial filesystem changeset.
- Content Digest
-
- The SHA-256 hash of the content BLOB.
- Content Size
-
- The size (in bytes) of the content BLOB.
- Diff ID
-
- The SHA-256 hash of the uncompressed archive (tarball) of the partial filesystem changeset.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getBlob
Blob getBlob() throws LayerPropertyNotFoundException
Returns this layer's contents.- Returns:
- the layer's content BLOB
- Throws:
LayerPropertyNotFoundException
- if not available
-
getBlobDescriptor
BlobDescriptor getBlobDescriptor() throws LayerPropertyNotFoundException
Returns this layer's content descriptor.- Returns:
- the layer's content
BlobDescriptor
- Throws:
LayerPropertyNotFoundException
- if not available
-
getDiffId
DescriptorDigest getDiffId() throws LayerPropertyNotFoundException
Returns this layer's diff ID.- Returns:
- the layer's diff ID
- Throws:
LayerPropertyNotFoundException
- if not available
-
-