Method
KeepAlive
(h blobcache.Handle, expiresAt time.Time)
Source from the content-addressed store, hash-verified
| 74 | } |
| 75 | |
| 76 | func (hs *handleSystem) KeepAlive(h blobcache.Handle, expiresAt time.Time) { |
| 77 | k := handleKey(h) |
| 78 | hs.mu.Lock() |
| 79 | defer hs.mu.Unlock() |
| 80 | handle, exists := hs.handles[k] |
| 81 | if !exists { |
| 82 | return |
| 83 | } |
| 84 | handle.expiresAt = expiresAt |
| 85 | hs.handles[k] = handle |
| 86 | } |
| 87 | |
| 88 | func (hs *handleSystem) Inspect(h blobcache.Handle) (handle, bool) { |
| 89 | k := handleKey(h) |
Callers
nothing calls this directly
Tested by
no test coverage detected