installer机制.md

概述

记录 installer 相关的机制,有的需要整理,有些需要改正的会渐渐改正

机制

安装、卸载、进度条,异步任务处理机制

使用 redis 分布式锁机制

sc 侧使用 redis 逻辑

pkg/empower/redis_lock/lock.go:26
外部使用的接口 TryLock UnLock ,其他的没有使用到

installer 侧使用 redis 逻辑

manager/task/redis.go:26
新的 kvstorage 需要实现
使用 flock 实现 ???

1
2
3
4
5
6
7
8
type kvStorage interface {
NewWithTTL(key string, ttl time.Duration) Storage
}
type Storage interface {
Put(any) error
Get(any) error
}


installer机制.md
https://abrance.github.io/2024/06/24/mdstorage/project/sr/基础设施相关/installer机制/
Author
xiaoy
Posted on
June 24, 2024
Licensed under