BlobCache is an object which saves copies of blobs that are written to it while passing them through to some real destination, and which can be queried directly in order to read them back. Implements types.ImageReference.
| 24 | // |
| 25 | // Implements types.ImageReference. |
| 26 | type BlobCache struct { |
| 27 | reference types.ImageReference |
| 28 | // WARNING: The contents of this directory may be accessed concurrently, |
| 29 | // both within this process and by multiple different processes |
| 30 | directory string |
| 31 | compress types.LayerCompression |
| 32 | } |
| 33 | |
| 34 | // NewBlobCache creates a new blob cache that wraps an image reference. Any blobs which are |
| 35 | // written to the destination image created from the resulting reference will also be stored |
nothing calls this directly
no outgoing calls
no test coverage detected