cli

package
v1.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfirmation

func GetConfirmation() bool

GetConfirmation ensures that the user confirms the action before proceeding.

Types

type DeleteOptions

type DeleteOptions struct {
	Names []string

	Selector  flag.LabelSelector
	Confirm   bool
	Client    clientset.Interface
	Namespace string
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

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