mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 07:10:41 -08:00
* feat(k8s): Add report flag for summary * chore: add headings to the severity columns * chore: make the default output of k8s summary table Signed-off-by: Owen Rumney <owen.rumney@aquasec.com>
20 lines
434 B
Go
20 lines
434 B
Go
package option
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// KubernetesOption holds the options for Kubernetes scanning
|
|
type KubernetesOption struct {
|
|
Namespace string
|
|
ReportFormat string
|
|
}
|
|
|
|
// NewKubernetesOption is the factory method to return Kubernetes options
|
|
func NewKubernetesOption(c *cli.Context) KubernetesOption {
|
|
return KubernetesOption{
|
|
Namespace: c.String("namespace"),
|
|
ReportFormat: c.String("report"),
|
|
}
|
|
}
|