MCPcopy
hub / github.com/containerd/containerd / store

Struct store

plugins/content/local/store.go:68–76  ·  view source on GitHub ↗

Store is digest-keyed store for content. All data written into the store is stored under a verifiable digest. Store can generally support multi-reader, single-writer ingest of data, including resumable ingest.

Source from the content-addressed store, hash-verified

66// Store can generally support multi-reader, single-writer ingest of data,
67// including resumable ingest.
68type store struct {
69 root string
70 ls LabelStore
71 integritySupported bool
72
73 locksMu sync.Mutex
74 locks map[string]*lock
75 ensureIngestRootOnce func() error
76}
77
78// NewStore returns a local content store
79func NewStore(root string) (content.Store, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected