-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
Copy pathscan.go
32 lines (28 loc) · 996 Bytes
/
scan.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
package types
import (
"github.com/aquasecurity/trivy/pkg/fanal/types"
)
// ScanTarget holds the attributes for scanning.
type ScanTarget struct {
Name string // container image name, file path, etc
OS types.OS
Repository *types.Repository
Packages types.Packages
Applications []types.Application
Misconfigurations []types.Misconfiguration
Secrets []types.Secret
Licenses []types.LicenseFile
// CustomResources hold analysis results from custom analyzers.
// It is for extensibility and not used in OSS.
CustomResources []types.CustomResource
}
// ScanOptions holds the attributes for scanning vulnerabilities
type ScanOptions struct {
PkgTypes []string
Scanners Scanners
ImageConfigScanners Scanners // Scanners for container image configuration
ScanRemovedPackages bool
LicenseCategories map[types.LicenseCategory][]string
FilePatterns []string
IncludeDevDeps bool
}