Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListOptions ¶
type ListOptions struct { Factory cmdutil.Factory Namespace string AllNamespaces bool LabelSelector string FieldSelector string ShowLabels bool ToPrinter func(*meta.RESTMapping, bool) (printers.ResourcePrinterFunc, error) // Names are the resource names Names []string GVR schema.GroupVersionResource Format printer.Format // print the result or not, if true, use default printer to print, otherwise, // only return the result to caller. Print bool SortBy string genericiooptions.IOStreams }
func NewListOptions ¶
func NewListOptions(f cmdutil.Factory, streams genericiooptions.IOStreams, gvr schema.GroupVersionResource) *ListOptions
func (*ListOptions) AddFlags ¶
func (o *ListOptions) AddFlags(cmd *cobra.Command, isClusterScope ...bool)
func (*ListOptions) Complete ¶
func (o *ListOptions) Complete() error
func (*ListOptions) PrintNotFoundResources ¶
func (o *ListOptions) PrintNotFoundResources()
Click to show internal directories.
Click to hide internal directories.