MCPcopy Create free account
hub / github.com/containers/image / BlobCache

Struct BlobCache

pkg/blobcache/blobcache.go:26–32  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

24//
25// Implements types.ImageReference.
26type 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected