| Constructor and Description |
|---|
CachedLayer(Path contentFile,
BlobDescriptor blobDescriptor,
DescriptorDigest diffId)
Initializes the layer with its file-backed content BLOB, content descriptor (digest and size),
and diff ID.
|
| Modifier and Type | Method and Description |
|---|---|
Blob |
getBlob() |
BlobDescriptor |
getBlobDescriptor() |
Path |
getContentFile() |
DescriptorDigest |
getDiffId() |
public CachedLayer(Path contentFile, BlobDescriptor blobDescriptor, DescriptorDigest diffId)
blobDescriptor and diffId must match the BLOB stored in
the file - no checks are made at runtime.contentFile - the file with the layer's content BLOBblobDescriptor - the content descriptor for the layer's content BLOBdiffId - the diff ID for the layerLayerpublic Path getContentFile()
public Blob getBlob()
public BlobDescriptor getBlobDescriptor()
getBlobDescriptor in interface LayerBlobDescriptorpublic DescriptorDigest getDiffId()
Copyright © 2018. All rights reserved.