Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanOptions ¶
type ScanOptions struct { *genericclioptions.ConfigFlags genericclioptions.IOStreams ChecksPath *string DisableBuiltIn *bool OutputFormat *string NoFail *bool SkipAnnotation *string DisableAnnotationSkip *bool DisableZoraBanner *bool // contains filtered or unexported fields }
func NewScanOptions ¶
func NewScanOptions() *ScanOptions
NewScanOptions returns a ScanOptions with the default values
func (*ScanOptions) AddFlags ¶
func (o *ScanOptions) AddFlags(flags *pflag.FlagSet)
AddFlags binds scan configuration flags to a given flagset
func (*ScanOptions) Init ¶
func (o *ScanOptions) Init(ctx context.Context) error
Init initializes the kubernetes clients, get server version and API resources
func (*ScanOptions) ToDynamicClient ¶
func (o *ScanOptions) ToDynamicClient() (*dynamic.DynamicClient, error)
ToDynamicClient returns a DynamicClient using a computed RESTConfig.
func (*ScanOptions) Validate ¶
func (o *ScanOptions) Validate() error
Validate ensures that all required arguments and flag values are provided
Click to show internal directories.
Click to hide internal directories.