kubernetes: k8s.io/kubernetes/pkg/kubectl/cmd/delete Index | Files

package delete

import "k8s.io/kubernetes/pkg/kubectl/cmd/delete"

Index

Package Files

delete.go delete_flags.go

func NewCmdDelete Uses

func NewCmdDelete(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

type DeleteFlags Uses

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
    Raw            *string
}

DeleteFlags composes common printer flag structs used for commands requiring deletion logic.

func NewDeleteCommandFlags Uses

func NewDeleteCommandFlags(usage string) *DeleteFlags

NewDeleteCommandFlags provides default flags and values for use with the "delete" command

func NewDeleteFlags Uses

func NewDeleteFlags(usage string) *DeleteFlags

NewDeleteFlags provides default flags and values for use in commands outside of "delete"

func (*DeleteFlags) AddFlags Uses

func (f *DeleteFlags) AddFlags(cmd *cobra.Command)

func (*DeleteFlags) ToOptions Uses

func (f *DeleteFlags) ToOptions(dynamicClient dynamic.Interface, streams genericclioptions.IOStreams) *DeleteOptions

type DeleteOptions Uses

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
    WarnClusterScope    bool
    Raw                 string

    GracePeriod int
    Timeout     time.Duration

    Output string

    DynamicClient dynamic.Interface
    Mapper        meta.RESTMapper
    Result        *resource.Result

    genericclioptions.IOStreams
}

func (*DeleteOptions) Complete Uses

func (o *DeleteOptions) Complete(f cmdutil.Factory, args []string, cmd *cobra.Command) error

func (*DeleteOptions) DeleteResult Uses

func (o *DeleteOptions) DeleteResult(r *resource.Result) error

func (*DeleteOptions) PrintObj Uses

func (o *DeleteOptions) PrintObj(info *resource.Info)

PrintObj for deleted objects is special because we do not have an object to print. This mirrors name printer behavior

func (*DeleteOptions) RunDelete Uses

func (o *DeleteOptions) RunDelete(f cmdutil.Factory) error

func (*DeleteOptions) Validate Uses

func (o *DeleteOptions) Validate() error

Package delete imports 19 packages (graph) and is imported by 38 packages. Updated 2019-07-12. Refresh now. Tools for package owners.