Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteHook ¶
type DeleteHook func(options *DeleteOptions, object runtime.Object) error
type DeleteOptions ¶
type DeleteOptions struct {
Factory cmdutil.Factory
Namespace string
LabelSelector string
AllNamespaces bool
Force bool
GracePeriod int
Now bool
AutoApprove bool
// Names are the resource names
Names []string
// ConfirmedNames used to double-check the resource names to delete, sometimes Names are used to build
// label selector and be set to nil, ConfirmedNames should be used to record the names to be confirmed.
ConfirmedNames []string
GVR schema.GroupVersionResource
Result *resource.Result
PreDeleteHook DeleteHook
PostDeleteHook DeleteHook
genericiooptions.IOStreams
}
func NewDeleteOptions ¶
func NewDeleteOptions(f cmdutil.Factory, streams genericiooptions.IOStreams, gvr schema.GroupVersionResource) *DeleteOptions
func (*DeleteOptions) AddFlags ¶
func (o *DeleteOptions) AddFlags(cmd *cobra.Command)
func (*DeleteOptions) Run ¶
func (o *DeleteOptions) Run() error
Click to show internal directories.
Click to hide internal directories.