Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func PrintResults ¶
func PrintResults(logger *zap.SugaredLogger, results []Result)
Types ¶
type Plugin ¶
type Plugin interface {
Name() string
Run(ctx context.Context, config *ScanConfig) ([]Result, error)
}
Plugin 是所有扫描模块必须实现的接口
type Result ¶
type Result struct {
Plugin string // 插件名称
Level string // "INFO", "low", "medium", "high", "critical"
Description string // 描述
Reference string // 引用 (文件路径, 进程ID 等)
Advice string // 建议
}
Result 代表扫描器的一个发现结果
Click to show internal directories.
Click to hide internal directories.