MCPcopy
hub / github.com/containerd/containerd / NewContainerStore

Function NewContainerStore

core/metadata/containers.go:49–53  ·  view source on GitHub ↗

NewContainerStore returns a Store backed by an underlying bolt DB

(db *DB)

Source from the content-addressed store, hash-verified

47
48// NewContainerStore returns a Store backed by an underlying bolt DB
49func NewContainerStore(db *DB) containers.Store {
50 return &containerStore{
51 db: db,
52 }
53}
54
55func (s *containerStore) Get(ctx context.Context, id string) (containers.Container, error) {
56 namespace, err := namespaces.NamespaceRequired(ctx)

Callers 8

FuzzContainerStoreFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFuncFunction · 0.92
TestCreateDeleteFunction · 0.85
TestContainersListFunction · 0.85
createFunction · 0.85

Calls

no outgoing calls

Tested by 5

FuzzContainerStoreFunction · 0.74
TestCreateDeleteFunction · 0.68
TestContainersListFunction · 0.68
createFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…