get

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRegisteredClusters added in v1.11.0

func LoadRegisteredClusters(clientSet karmadaclientset.Interface) ([]string, error)

LoadRegisteredClusters gets a list of register clusters.

func NewCmdGet

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

NewCmdGet New get command

Types

type CommandGetOptions

type CommandGetOptions struct {
	Clusters             []string
	OperationScope       options.OperationScope
	TargetMemberClusters []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

	genericiooptions.IOStreams

	KarmadaClient karmadaclientset.Interface
}

CommandGetOptions contains the input to the get command.

func NewCommandGetOptions

func NewCommandGetOptions(streams genericiooptions.IOStreams) *CommandGetOptions

NewCommandGetOptions returns a CommandGetOptions with default chunk size 500.

func (*CommandGetOptions) Complete

func (g *CommandGetOptions) Complete(f util.Factory, cmd *cobra.Command) error

Complete takes the command arguments and infers any remaining options.

func (*CommandGetOptions) HandleClusterScopeFlags added in v1.12.0

func (g *CommandGetOptions) HandleClusterScopeFlags() error

HandleClusterScopeFlags used to handle flags related to cluster scope.

func (*CommandGetOptions) Run

func (g *CommandGetOptions) Run(f util.Factory, 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
	IsControlPlane bool
	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