Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdDelete ¶
func NewCmdDelete(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
Types ¶
type DeleteFlags ¶
type DeleteFlags struct {
FileNameFlags *genericclioptions.FileNameFlags
LabelSelector *string
FieldSelector *string
All *bool
AllNamespaces *bool
Cascade *bool
Force *bool
GracePeriod *int
IgnoreNotFound *bool
Now *bool
Timeout *time.Duration
Wait *bool
Output *string
}
DeleteFlags composes common printer flag structs used for commands requiring deletion logic.
func NewDeleteCommandFlags ¶
func NewDeleteCommandFlags(usage string) *DeleteFlags
NewDeleteCommandFlags provides default flags and values for use with the "delete" command
func NewDeleteFlags ¶
func NewDeleteFlags(usage string) *DeleteFlags
NewDeleteFlags provides default flags and values for use in commands outside of "delete"
type DeleteOptions ¶
type DeleteOptions struct {
resource.FilenameOptions
LabelSelector string
FieldSelector string
DeleteAll bool
DeleteAllNamespaces bool
IgnoreNotFound bool
Cascade bool
DeleteNow bool
ForceDeletion bool
WaitForDeletion bool
Quiet bool
GracePeriod int
Timeout time.Duration
Output string
DynamicClient dynamic.Interface
Mapper meta.RESTMapper
Result *resource.Result
genericclioptions.IOStreams
}
func (*DeleteOptions) Complete ¶
func (o *DeleteOptions) Complete(f cmdutil.Factory, args []string, cmd *cobra.Command) error
func (*DeleteOptions) DeleteResult ¶
func (o *DeleteOptions) DeleteResult(r *resource.Result) error
Click to show internal directories.
Click to hide internal directories.