(idx *Index)
| 59 | } |
| 60 | |
| 61 | func (e encryptedModel) Index(idx *Index) error { |
| 62 | if folderKey, ok := e.folderKeys.get(idx.Folder); ok { |
| 63 | // incoming index data to be decrypted |
| 64 | if err := decryptFileInfos(e.keyGen, idx.Files, folderKey); err != nil { |
| 65 | return err |
| 66 | } |
| 67 | } |
| 68 | return e.model.Index(idx) |
| 69 | } |
| 70 | |
| 71 | func (e encryptedModel) IndexUpdate(idxUp *IndexUpdate) error { |
| 72 | if folderKey, ok := e.folderKeys.get(idxUp.Folder); ok { |
nothing calls this directly
no test coverage detected