Files
trivy/pkg/commands/option/kubernetes.go
Jose Donizetti 029dd76c30 feat: add k8s subcommand (#2065)
Co-authored-by: knqyf263 <knqyf263@gmail.com>
2022-05-12 21:11:29 +03:00

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