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

package label

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

Index

Package Files

label.go

func NewCmdLabel Uses

func NewCmdLabel(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

type LabelOptions Uses

type LabelOptions struct {
    // Filename options
    resource.FilenameOptions
    RecordFlags *genericclioptions.RecordFlags

    PrintFlags *genericclioptions.PrintFlags
    ToPrinter  func(string) (printers.ResourcePrinter, error)

    Recorder genericclioptions.Recorder

    // Common shared fields
    genericclioptions.IOStreams
    // contains filtered or unexported fields
}

LabelOptions have the data required to perform the label operation

func NewLabelOptions Uses

func NewLabelOptions(ioStreams genericclioptions.IOStreams) *LabelOptions

func (*LabelOptions) Complete Uses

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

Complete adapts from the command line args and factory to the data required.

func (*LabelOptions) RunLabel Uses

func (o *LabelOptions) RunLabel() error

RunLabel does the work

func (*LabelOptions) Validate Uses

func (o *LabelOptions) Validate() error

Validate checks to the LabelOptions to see if there is sufficient information run the command.

Package label imports 21 packages (graph) and is imported by 10 packages. Updated 2019-07-09. Refresh now. Tools for package owners.