mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 15:16:33 -08:00
27 lines
548 B
Go
27 lines
548 B
Go
package api
|
|
|
|
import "github.com/aquasecurity/trivy/pkg/module/serialize"
|
|
|
|
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(serialize.Results) (serialize.Results, error)
|
|
}
|