github.com/devseccon/trivy@v0.47.1-0.20231123133102-bd902a0bd996/pkg/types/scan.go (about) 1 package types 2 3 import ( 4 "github.com/devseccon/trivy/pkg/fanal/types" 5 ) 6 7 // ScanTarget holds the attributes for scanning. 8 type ScanTarget struct { 9 Name string // container image name, file path, etc 10 OS types.OS 11 Repository *types.Repository 12 Packages types.Packages 13 Applications []types.Application 14 Misconfigurations []types.Misconfiguration 15 Secrets []types.Secret 16 Licenses []types.LicenseFile 17 18 // CustomResources hold analysis results from custom analyzers. 19 // It is for extensibility and not used in OSS. 20 CustomResources []types.CustomResource 21 } 22 23 // ScanOptions holds the attributes for scanning vulnerabilities 24 type ScanOptions struct { 25 VulnType []string 26 Scanners Scanners 27 ImageConfigScanners Scanners // Scanners for container image configuration 28 ScanRemovedPackages bool 29 ListAllPackages bool 30 LicenseCategories map[types.LicenseCategory][]string 31 FilePatterns []string 32 IncludeDevDeps bool 33 }