Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFactory ¶
func SetFactory(f Factory)
Types ¶
type Factory ¶
type Factory interface { Policies() PolicyStore // 策略相关 Secrets() SecretStore // 密钥相关 }
工厂定义了 IAM 平台存储接口
type PolicyStore ¶
type PolicyStore interface {
List() (map[string][]*ladon.DefaultPolicy, error)
}
权限
type SecretStore ¶
type SecretStore interface {
List() (map[string]*pb.SecretInfo, error)
}
通过 grpc 得到 SecretInfo的列表
Click to show internal directories.
Click to hide internal directories.