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.
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.