/
githubmirror
/
trivy
Обзор
Документация
Войти
/
githubmirror
/
trivy
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pkg/module/api/api.go
29 строк
596 B
Teppei Fukuda
feat: replace TinyGo with standard Go for WebAssembly modules (#8496)
07 мар 2025, 13:10
Не верифицирован
07 мар 2025, 13:10
529957e
Код
Авторство
О чём код?
package api import ( "github.com/aquasecurity/trivy/pkg/module/serialize" "github.com/aquasecurity/trivy/pkg/types" ) const ( Version = 1 ActionInsert serialize.PostScanAction = "INSERT" ActionUpdate serialize.PostScanAction = "UPDATE" ActionDelete serialize.PostScanAction = "DELETE" ) type Module interface { Version() int Name() string } type Analyzer interface { RequiredFiles() []string Analyze(filePath string) (*serialize.AnalysisResult, error) } type PostScanner interface { PostScanSpec() serialize.PostScanSpec PostScan(results types.Results) (types.Results, error) }