(idxUp *IndexUpdate)
| 69 | } |
| 70 | |
| 71 | func (e encryptedModel) IndexUpdate(idxUp *IndexUpdate) error { |
| 72 | if folderKey, ok := e.folderKeys.get(idxUp.Folder); ok { |
| 73 | // incoming index data to be decrypted |
| 74 | if err := decryptFileInfos(e.keyGen, idxUp.Files, folderKey); err != nil { |
| 75 | return err |
| 76 | } |
| 77 | } |
| 78 | return e.model.IndexUpdate(idxUp) |
| 79 | } |
| 80 | |
| 81 | func (e encryptedModel) Request(req *Request) (RequestResponse, error) { |
| 82 | folderKey, ok := e.folderKeys.get(req.Folder) |
nothing calls this directly
no test coverage detected