kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/label/label.go

const MsgNotLabeled

const MsgLabeled

const MsgUnLabeled

type LabelOptions

var labelLong

var labelExample

func NewLabelOptions(ioStreams genericiooptions.IOStreams) *LabelOptions {}

func NewCmdLabel(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command {}

// Complete adapts from the command line args and factory to the data required.
func (o *LabelOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error {}

// Validate checks to the LabelOptions to see if there is sufficient information run the command.
func (o *LabelOptions) Validate() error {}

// RunLabel does the work
func (o *LabelOptions) RunLabel() error {}

func updateDataChangeMsg(oldObj []byte, newObj []byte, overwrite bool) string {}

func validateNoOverwrites(accessor metav1.Object, labels map[string]string) error {}

func parseLabels(spec []string) (map[string]string, []string, error) {}

func labelFunc(obj runtime.Object, overwrite bool, resourceVersion string, labels map[string]string, remove []string) error {}