list

package
v0.7.2-beta.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2023 License: AGPL-3.0 Imports: 24 Imported by: 0

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 (*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()

func (*ListOptions) Run

func (o *ListOptions) Run() (*resource.Result, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL