cli

package
v1.18.5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteOptions

type DeleteOptions struct {
	*SelectOptions
	confirm.ConfirmOptions
	Client    controllerclient.Client
	Namespace string
}

DeleteOptions contains parameters used for deleting a restore.

func NewDeleteOptions

func NewDeleteOptions(singularTypeName string) *DeleteOptions

func (*DeleteOptions) BindFlags

func (o *DeleteOptions) BindFlags(flags *pflag.FlagSet)

BindFlags binds options for this command to flags.

func (*DeleteOptions) Complete

func (o *DeleteOptions) Complete(f client.Factory, args []string) error

Complete fills in the correct values for all the options.

func (*DeleteOptions) Validate

func (o *DeleteOptions) Validate(c *cobra.Command, f client.Factory, args []string) error

Validate validates the fields of the DeleteOptions struct.

type SelectOptions added in v1.10.0

type SelectOptions struct {
	Names            []string
	All              bool
	Selector         flag.LabelSelector
	CMD              string
	SingularTypeName string
}

SelectOptions defines the options for selecting resources

func NewSelectOptions added in v1.10.0

func NewSelectOptions(cmd, singularTypeName string) *SelectOptions

NewSelectOptions creates a new option for selector

func (*SelectOptions) BindFlags added in v1.10.0

func (o *SelectOptions) BindFlags(flags *pflag.FlagSet)

BindFlags binds options for this command to flags.

func (*SelectOptions) Complete added in v1.10.0

func (o *SelectOptions) Complete(args []string) error

Complete fills in the correct values for all the options.

func (*SelectOptions) Validate added in v1.10.0

func (o *SelectOptions) Validate() error

Validate validates the fields of the SelectOptions struct.

Jump to

Keyboard shortcuts

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