MCPcopy
hub / github.com/perkeep/perkeep / fetchScanByContent

Method fetchScanByContent

app/scanningcabinet/datastore.go:200–202  ·  view source on GitHub ↗

returns os.ErrNotExist when scan was not found

(contentRef blob.Ref)

Source from the content-addressed store, hash-verified

198
199// returns os.ErrNotExist when scan was not found
200func (h *handler) fetchScanByContent(contentRef blob.Ref) (mediaObject, error) {
201 return h.fetchScanFunc(contentRef, h.searchScanByContent)
202}
203
204// returns os.ErrNotExist when scan was not found
205func (h *handler) fetchScan(pn blob.Ref) (mediaObject, error) {

Callers 1

handleUploadMethod · 0.95

Calls 1

fetchScanFuncMethod · 0.95

Tested by

no test coverage detected