Documentation
¶
Overview ¶
Package cleanup 提供受管可丢弃缓存与临时内容的清理服务。
cleanup 获取 mutation Mutex 后,只通过 filesystem.Operator 的受控删除 能力删除明确授权目标;用户数据、插件目录与诊断日志来自 config 保护名单, 一律不触碰。repo.update-* 只有在事务状态、目录身份与 PID 事实全部匹配 时才允许删除,身份不明时失败关闭。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReportDetails ¶
ReportDetails 返回 result.details 使用的非敏感条目清单与计数。
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error 描述 cleanup 服务失败,供 cli 会话框架映射协议四元组。
type Item ¶
type Item struct {
ID string
Status ItemStatus
Message string
Details map[string]any
}
Item 描述一次清理目标的稳定结果。
type ItemStatus ¶
type ItemStatus string
ItemStatus 是单条清理目标的稳定结果。
const ( ItemCleaned ItemStatus = "cleaned" ItemSkipped ItemStatus = "skipped" ItemFailed ItemStatus = "failed" )