kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/set/set_selector.go

type SetSelectorOptions

var selectorLong

var selectorExample

// NewSelectorOptions returns an initialized SelectorOptions instance
func NewSelectorOptions(streams genericiooptions.IOStreams) *SetSelectorOptions {}

// NewCmdSelector is the "set selector" command.
func NewCmdSelector(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command {}

// Complete assigns the SelectorOptions from args.
func (o *SetSelectorOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error {}

// Validate basic inputs
func (o *SetSelectorOptions) Validate() error {}

// RunSelector executes the command.
func (o *SetSelectorOptions) RunSelector() error {}

func updateSelectorForObject(obj runtime.Object, selector metav1.LabelSelector) error {}

// getResourcesAndSelector retrieves resources and the selector expression from the given args (assuming selectors the last arg)
func getResourcesAndSelector(args []string) (resources []string, selector *metav1.LabelSelector, err error) {}