This commit changes stargz-store to use TOCDigest as the layer specifier.
For example, the extracted view of a layer diff contents is provided in the following path:
<mountpoint>/base64(imageref)/<TOCDigest>/diff
When an access happens to a layer, stargz store searches the layer that has the TOC matching to the specified TOCDigest.
If it fails to get the layer, stargz-store returns EIO.
Needs: https://github.com/containers/storage/pull/1924 and https://github.com/containers/image/pull/2416
This commit changes stargz-store to use TOCDigest as the layer specifier. For example, the extracted view of a layer diff contents is provided in the following path:
When an access happens to a layer, stargz store searches the layer that has the TOC matching to the specified TOCDigest. If it fails to get the layer, stargz-store returns EIO.