Package com.google.cloud.tools.jib.cache
Class CachedLayer
- java.lang.Object
-
- com.google.cloud.tools.jib.cache.CachedLayer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CachedLayer.Builder
Builds aCachedLayer
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CachedLayer.Builder
builder()
Creates a newCachedLayer.Builder
for aCachedLayer
.Blob
getBlob()
Returns this layer's contents.BlobDescriptor
getBlobDescriptor()
Returns this layer's content descriptor.DescriptorDigest
getDiffId()
Returns this layer's diff ID.DescriptorDigest
getDigest()
long
getSize()
-
-
-
Method Detail
-
builder
public static CachedLayer.Builder builder()
Creates a newCachedLayer.Builder
for aCachedLayer
.- Returns:
- the new
CachedLayer.Builder
-
getDigest
public DescriptorDigest getDigest()
-
getSize
public long getSize()
-
getDiffId
public DescriptorDigest getDiffId()
Description copied from interface:Layer
Returns this layer's diff ID.
-
getBlob
public Blob getBlob()
Description copied from interface:Layer
Returns this layer's contents.
-
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
-
-