If the layer is cached, all of these values should be able to be loaded directly.
If the layer is not cached (or needs to be pushed to the registry), it should have another field content that is the actual tar.gzip layer blob. In the case that the layer is pulled from a registry, it might not have diffId and that would need to be computed by uncompressing the layer blob.
Should consist of
digest
,size
, anddiffId
.If the layer is cached, all of these values should be able to be loaded directly. If the layer is not cached (or needs to be pushed to the registry), it should have another field
content
that is the actual tar.gzip layer blob. In the case that the layer is pulled from a registry, it might not havediffId
and that would need to be computed by uncompressing the layer blob.