mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 15:37:50 -08:00
18 lines
371 B
Go
18 lines
371 B
Go
package option
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// KubernetesOption holds the options for Kubernetes scanning
|
|
type KubernetesOption struct {
|
|
Namespace string
|
|
}
|
|
|
|
// NewKubernetesOption is the factory method to return Kubernetes options
|
|
func NewKubernetesOption(c *cli.Context) KubernetesOption {
|
|
return KubernetesOption{
|
|
Namespace: c.String("namespace"),
|
|
}
|
|
}
|