1 Star 0 Fork 0

dpnogo / iam

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
store.go 408 Bytes
一键复制 编辑 原始数据 按行查看 历史
package store
// 通过 proto 从 apiserver 中得到 store(数据库中内容) 然后 cache 通过ristretto库将数据库中的数据写入到内存中
var client Factory
// 工厂定义了 IAM 平台存储接口
type Factory interface {
Policies() PolicyStore // 策略相关
Secrets() SecretStore // 密钥相关
}
func SetFactory(f Factory) {
client = f
}
func Get()Factory{
return client
}
1
https://gitee.com/GomiTo/iam.git
git@gitee.com:GomiTo/iam.git
GomiTo
iam
iam
455e706b39fb

搜索帮助