cmd

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

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
	// 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) Run

func (o *ScanOptions) Run() (bool, error)

Run executes the scan command

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL