diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-17 08:45:13 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-17 08:45:13 +0300 |
| commit | 9e2bf4af8b7b3b4ca2980aa6285482e7db0cd151 (patch) | |
| tree | 96bcd8ad2a64e6dfc9d3bedc9d063eeef1591cf0 /internal/git/git.go | |
| parent | b53e348d89046ea8de5b82c283fb56980b53cdd8 (diff) | |
feat: add internal/keepass package with full Backend implementation (tasks k4+l4+m4)
Read-write KeePass backend implementing backend.Backend:
- WalkIndexes flattens groups into 'Group/Title' virtual entries
- LoadData returns formatted Password/User/URL/Notes for text entries
or raw bytes for binary attachments
- WriteBack hook enables edit round-trip through the kdbx file
- Add/Import/ImportRecursive/Remove with atomic tmp+rename save
- Binary attachments surface as virtual 'Group/Title/filename' entries;
Add to such a path creates/replaces the attachment on the parent entry
- AtomicSave exported for reuse by cli/kdbx_store.go
- parseContent is the tolerant inverse of formatContent
- Helpers EnsureGroup, UpsertEntryByTitle, SetEntryField, SplitDescriptionPath,
SanitizeRelativePath exported so cli/kdbx_store.go avoids duplication
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/git/git.go')
0 files changed, 0 insertions, 0 deletions
