pub fn image_blobs_cache_root() -> Result<PathBuf>
Expand description
Get’s the image ‘blobs’ cache root path
When Blobs are downloaded (via http(s) say.), the blobs are stored at this location ‘after’ the digest is verified. The actual ‘blob’ path then can be stored in a cache by an App (inside some kind of digest->path map).
Each blob will be saved at a path like /cache_root/<alg>/<digest>
Path. It is safe to assume
that if there’s a path corresponding to a ‘blob’ here, the contents of the ‘blob’ do indeed
match the checksum.
Note: This path is different from the blobs
directory inside an OCI image layout. For OCI
images, the blobs
directory is maintained per image. All blobs for a particular image
(including those for different tags will be contained in that directory.) The blobs in these
cache are not related to each other. They serve just as cache
.