mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
18 lines
320 B
Go
18 lines
320 B
Go
package options
|
|
|
|
type ConfigurableScanner any
|
|
|
|
type ScannerOption func(s ConfigurableScanner)
|
|
|
|
type RawConfigScanner interface {
|
|
SetScanRawConfig(v bool)
|
|
}
|
|
|
|
func WithScanRawConfig(v bool) ScannerOption {
|
|
return func(s ConfigurableScanner) {
|
|
if ss, ok := s.(RawConfigScanner); ok {
|
|
ss.SetScanRawConfig(v)
|
|
}
|
|
}
|
|
}
|