(ctx context.Context, idx *Index)
| 195 | } |
| 196 | |
| 197 | func (e encryptedConnection) Index(ctx context.Context, idx *Index) error { |
| 198 | if folderKey, ok := e.folderKeys.get(idx.Folder); ok { |
| 199 | encryptFileInfos(e.keyGen, idx.Files, folderKey) |
| 200 | } |
| 201 | return e.conn.Index(ctx, idx) |
| 202 | } |
| 203 | |
| 204 | func (e encryptedConnection) IndexUpdate(ctx context.Context, idxUp *IndexUpdate) error { |
| 205 | if folderKey, ok := e.folderKeys.get(idxUp.Folder); ok { |
nothing calls this directly
no test coverage detected