v0.10.0 Release Notes
Released
Generated: 2026-01-20 09:15 (+00:00) v0.9.0 → v0.10.0
Recommended Commit Message
feat: add pod operation recording with new records API endpoint
翻譯
feat: 新增 Pod 操作紀錄功能與 records API 端點Summary
Add operation recording system to track pod lifecycle events (up, down, clear, sync, overwrite). Introduces Record model, database insert method, and REST endpoint for audit trail.
翻譯
新增操作紀錄系統以追蹤 Pod 生命週期事件(up、down、clear、sync、overwrite)。引入 `Record` 模型、資料庫新增方法與 REST 端點用於稽核軌跡。Changes
FEAT
- Add
Recordmodel withUID,Content,Hostname,IPfields - Add
recordPod()function to log pod operations via API - Add
InsertRecord()method in SQLite database layer - Add
/pod/record/insertPOST endpoint for record creation - Add
hostnameandipcolumns torecordstable schema
翻譯
- 新增
Record模型含UID、Content、Hostname、IP欄位 - 新增
recordPod()函式透過 API 記錄 Pod 操作 - 新增 SQLite 資料庫層的
InsertRecord()方法 - 新增
/pod/record/insertPOST 端點用於建立紀錄 - 新增
hostname與ip欄位至records資料表結構
UPDATE
- Modify
RsyncToRemote()to skip dry-run preview when remote directory is empty - Modify rsync exclude list to remove
docker-compose.yml,docker-compose.yamlfrom sync phase - Add trusted proxy configuration (
127.0.0.1, local IP) to Gin router
翻譯
- 修改
RsyncToRemote()當遠端目錄為空時跳過 dry-run 預覽 - 修改 rsync 排除清單,同步階段移除
docker-compose.yml、docker-compose.yaml - 新增信任代理配置(
127.0.0.1、本機 IP)至 Gin 路由器
REFACTOR
- Extract
upsertPod()helper function from inline HTTP POST logic - Rename
ListContainers()toListPods()for consistency - Move
Recordstruct fromdatabase/sqlite.gotomodel/pod.go
翻譯
- 從內嵌 HTTP POST 邏輯中提取
upsertPod()輔助函式 - 將
ListContainers()重新命名為ListPods()以保持一致性 - 將
Record結構從database/sqlite.go移至model/pod.go
FIX
- Remove incorrect
pod_uid = excluded.pod_uidfrom UPSERT conflict clause
翻譯
- 移除 UPSERT 衝突子句中錯誤的
pod_uid = excluded.pod_uid
Files Changed
| File | Status | Tag |
|---|---|---|
internal/command/composeCMD.go |
Modified | FEAT, UPDATE, REFACTOR |
internal/database/sqlite.go |
Modified | FEAT, REFACTOR, FIX |
internal/model/pod.go |
Modified | FEAT |
internal/routes/routes.go |
Modified | FEAT, UPDATE |
sql/create.sql |
Modified | FEAT |
Generated by Claude Code