MCPcopy Create free account
hub / github.com/containerd/containerd / getRef

Function getRef

core/metadata/content.go:294–304  ·  view source on GitHub ↗
(tx *bolt.Tx, ns, ref string)

Source from the content-addressed store, hash-verified

292}
293
294func getRef(tx *bolt.Tx, ns, ref string) string {
295 bkt := getIngestBucket(tx, ns, ref)
296 if bkt == nil {
297 return ""
298 }
299 v := bkt.Get(bucketKeyRef)
300 if len(v) == 0 {
301 return ""
302 }
303 return string(v)
304}
305
306func (cs *contentStore) Status(ctx context.Context, ref string) (content.Status, error) {
307 ns, err := namespaces.NamespaceRequired(ctx)

Callers 1

StatusMethod · 0.85

Calls 2

getIngestBucketFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…