list

package
v1.4.5-hotfix-log Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdList

func NewCmdList(tkcContext *config.TkcContext, streams genericclioptions.IOStreams) *cobra.Command

NewCmdList creates the list command which lists all the tidb cluster in the specified kubernetes cluster and sync to local config file. List only searches for pingcap.com/tidbclusters custom resources.

Types

type ListOptions

type ListOptions struct {
	AllNamespaces bool
	Namespace     string

	PrintFlags *readable.PrintFlags

	genericclioptions.IOStreams
}

ListOptions contains the input to the list command.

func NewListOptions

func NewListOptions(streams genericclioptions.IOStreams) *ListOptions

NewListOptions returns a ListOptions.

func (*ListOptions) Complete

func (o *ListOptions) Complete(tkcContext *config.TkcContext, cmd *cobra.Command, args []string) error

func (*ListOptions) Run

func (o *ListOptions) Run(tkcContext *config.TkcContext, cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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