get

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdGet

func NewCmdGet(f util.Factory, parentCommand string, streams genericclioptions.IOStreams) *cobra.Command

NewCmdGet New get command

Types

type CommandGetOptions

type CommandGetOptions struct {
	Clusters []string

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

	CmdParent string

	resource.FilenameOptions

	Watch     bool
	WatchOnly bool
	ChunkSize int64

	OutputWatchEvents bool

	LabelSelector     string
	FieldSelector     string
	Namespace         string
	AllNamespaces     bool
	ExplicitNamespace bool

	ServerPrint bool

	NoHeaders      bool
	Sort           bool
	IgnoreNotFound bool
	Export         bool

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

CommandGetOptions contains the input to the get command.

func NewCommandGetOptions

func NewCommandGetOptions(streams genericclioptions.IOStreams) *CommandGetOptions

NewCommandGetOptions returns a CommandGetOptions with default chunk size 500.

func (*CommandGetOptions) Complete

func (g *CommandGetOptions) Complete(f util.Factory) error

Complete takes the command arguments and infers any remaining options.

func (*CommandGetOptions) Run

func (g *CommandGetOptions) Run(f util.Factory, cmd *cobra.Command, args []string) error

Run performs the get operation.

func (*CommandGetOptions) Validate

func (g *CommandGetOptions) Validate(cmd *cobra.Command) error

Validate checks the set of flags provided by the user.

type Obj

type Obj struct {
	Cluster string
	Info    *resource.Info
}

Obj cluster info

type WatchObj

type WatchObj struct {
	Cluster string
	// contains filtered or unexported fields
}

WatchObj is a obj that is watched

Jump to

Keyboard shortcuts

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