mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
* List supported resources for scanners * Don't warn on scanner discovery commands * Use scanner-to-resource map * Save changes * Scan result tabs * Own table render for Checkov * Scannable manifest flag for scanners
18 lines
649 B
Go
18 lines
649 B
Go
package subproc
|
|
|
|
type Scanner interface {
|
|
Name() string // returns string label for the scanner
|
|
Test() bool // test if the scanner is available
|
|
ScanManifests(mnf string) (*ScanResults, error) // run the scanner on manifests
|
|
ScanResource(ns string, kind string, name string) (*ScanResults, error) // run the scanner on k8s resource
|
|
SupportedResourceKinds() []string
|
|
ManifestIsScannable() bool
|
|
}
|
|
|
|
type ScanResults struct {
|
|
PassedCount int
|
|
FailedCount int
|
|
OrigReport interface{}
|
|
Error error
|
|
}
|