MCPcopy
hub / github.com/google/go-containerregistry / memcache

Struct memcache

pkg/v1/cache/cache_test.go:130–132  ·  view source on GitHub ↗

memcache is an in-memory Cache implementation. It doesn't intend to actually write layer data, it just keeps a reference to the original Layer. It only assumes/considers compressed layers, and so only writes layers by digest.

Source from the content-addressed store, hash-verified

128// It only assumes/considers compressed layers, and so only writes layers by
129// digest.
130type memcache struct {
131 m map[v1.Hash]v1.Layer
132}
133
134func (m *memcache) Put(l v1.Layer) (v1.Layer, error) {
135 digest, err := l.Digest()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected