-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
types.go
42 lines (32 loc) · 1.03 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package serialize
import (
"github.com/aquasecurity/trivy/pkg/types"
)
type StringSlice []string
type AnalysisResult struct {
// TODO: support other fields as well
// OS *types.OS
// Repository *types.Repository
// PackageInfos []types.PackageInfo
// Applications []types.Application
// Secrets []types.Secret
// SystemInstalledFiles []string // A list of files installed by OS package manager
// Currently it supports custom resources only
CustomResources []CustomResource
}
type CustomResource struct {
Type string
FilePath string
Data interface{}
}
type PostScanAction string
type PostScanSpec struct {
// What action the module will do in post scanning.
// value: INSERT, UPDATE and DELETE
Action PostScanAction
// IDs represent which vulnerability and misconfiguration ID will be updated or deleted in post scanning.
// When the action is UPDATE, the matched result will be passed to the module.
IDs []string
}
type Results []Result
type Result types.Result