list

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputFormatWide = "wide"
)

Variables

View Source
var (
	NewGetPrintFlags = kubectlget.NewGetPrintFlags
	NewRuntimeSorter = kubectlget.NewRuntimeSorter
)

Functions

func NewCmdList

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

NewCmdList returns a cobra command for list nebula clusters or there sub resources.

Types

type ListOptions

type ListOptions struct {
	Namespace          string
	NebulaClusterName  string
	NebulaClusterLabel string
	ResourceType       string

	LabelSelector  string
	FieldSelector  string
	AllNamespaces  bool
	Sort           bool
	SortBy         string
	IgnoreNotFound bool

	ServerPrint bool

	PrintFlags             *PrintFlags
	ToPrinter              func(mapping *meta.RESTMapping, withNamespace bool) (printers.ResourcePrinterFunc, error)
	IsHumanReadablePrinter bool

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

ListOptions is a struct to support list command

func NewListOptions

func NewListOptions(streams genericclioptions.IOStreams) *ListOptions

NewListOptions returns initialized Options

func (*ListOptions) AddFlags

func (o *ListOptions) AddFlags(cmd *cobra.Command)

AddFlags add extra list options flags.

func (*ListOptions) Complete

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

Complete completes all the required options

func (*ListOptions) Run

func (o *ListOptions) Run() error

Run executes list command

func (*ListOptions) Validate

func (o *ListOptions) Validate(cmd *cobra.Command) error

type OriginalPositioner

type OriginalPositioner = kubectlget.OriginalPositioner

type PrintFlags

type PrintFlags = kubectlget.PrintFlags

type SortingPrinter

type SortingPrinter = kubectlget.SortingPrinter

type TablePrinter

type TablePrinter = kubectlget.TablePrinter

Jump to

Keyboard shortcuts

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