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