MCPcopy Index your code
hub / github.com/perkeep/perkeep / fetchDocument

Method fetchDocument

app/scanningcabinet/datastore.go:730–734  ·  view source on GitHub ↗

returns os.ErrNotExist when document was not found

(pn blob.Ref)

Source from the content-addressed store, hash-verified

728
729// returns os.ErrNotExist when document was not found
730func (h *handler) fetchDocument(pn blob.Ref) (*document, error) {
731 return h.fetchDocumentFunc([]blob.Ref{pn}, func(blobs []blob.Ref) (*search.SearchResult, error) {
732 return h.searchDocument(context.TODO(), blobs[0])
733 })
734}
735
736// returns os.ErrNotExist when document was not found
737func (h *handler) fetchDocumentFunc(blobs []blob.Ref,

Callers 4

updateDocumentMethod · 0.95
breakAndDeleteDocMethod · 0.95
deleteDocAndImagesMethod · 0.95
handleDocMethod · 0.95

Calls 2

fetchDocumentFuncMethod · 0.95
searchDocumentMethod · 0.95

Tested by

no test coverage detected