mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
* Research scanning * Move files around * Reports the list * Scanner happens * Commit * Work on alternative * refactorings * Progress * Save the state * Commit * Display trivy Results * Checkov also reports * Better display * Correct trivy numbers * Scan pre-install manifest * Readme items * Static checks
16 lines
586 B
Go
16 lines
586 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
|
|
}
|
|
|
|
type ScanResults struct {
|
|
PassedCount int
|
|
FailedCount int
|
|
OrigReport interface{}
|
|
Error error
|
|
}
|