MCPcopy Index your code
hub / github.com/containerd/containerd / writeExpireAt

Function writeExpireAt

core/metadata/content.go:835–841  ·  view source on GitHub ↗
(expire time.Time, bkt *bolt.Bucket)

Source from the content-addressed store, hash-verified

833}
834
835func writeExpireAt(expire time.Time, bkt *bolt.Bucket) error {
836 expireAt, err := expire.MarshalBinary()
837 if err != nil {
838 return err
839 }
840 return bkt.Put(bucketKeyExpireAt, expireAt)
841}
842
843// garbageCollect removes all contents that are no longer used.
844func (cs *contentStore) garbageCollect(ctx context.Context) (d time.Duration, err error) {

Callers 2

addIngestFunction · 0.85
WriterMethod · 0.85

Calls 1

PutMethod · 0.80

Tested by 1

addIngestFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…