Files
trivy/pkg/iac/scanners/options/scanner.go
2025-05-27 04:34:17 +00:00

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)
}
}
}