MCPcopy
hub / github.com/perkeep/perkeep / fetchScan

Method fetchScan

app/scanningcabinet/datastore.go:205–207  ·  view source on GitHub ↗

returns os.ErrNotExist when scan was not found

(pn blob.Ref)

Source from the content-addressed store, hash-verified

203
204// returns os.ErrNotExist when scan was not found
205func (h *handler) fetchScan(pn blob.Ref) (mediaObject, error) {
206 return h.fetchScanFunc(pn, h.searchScan)
207}
208
209// returns os.ErrNotExist when scan was not found
210func (h *handler) fetchScanFunc(br blob.Ref, searchFunc func(blob.Ref) (*search.SearchResult, error)) (mediaObject, error) {

Callers 3

updateScanMethod · 0.95
handleResourceMethod · 0.95
handleDocMethod · 0.95

Calls 1

fetchScanFuncMethod · 0.95

Tested by

no test coverage detected