(h blobcache.Handle)
| 63 | } |
| 64 | |
| 65 | func (hs *handleSystem) Resolve(h blobcache.Handle) (blobcache.OID, blobcache.ActionSet) { |
| 66 | k := handleKey(h) |
| 67 | hs.mu.RLock() |
| 68 | defer hs.mu.RUnlock() |
| 69 | handle, exists := hs.handles[k] |
| 70 | if !exists { |
| 71 | return blobcache.OID{}, 0 |
| 72 | } |
| 73 | return handle.target, handle.rights |
| 74 | } |
| 75 | |
| 76 | func (hs *handleSystem) KeepAlive(h blobcache.Handle, expiresAt time.Time) { |
| 77 | k := handleKey(h) |
no test coverage detected