Documentation ¶
Index ¶
- func NewCmdGet(tkcContext *config.TkcContext, streams genericclioptions.IOStreams) *cobra.Command
- type GetOptions
- func (o *GetOptions) Complete(tkcContext *config.TkcContext, cmd *cobra.Command, args []string) error
- func (o *GetOptions) PrintOutput(tc *v1alpha1.TidbCluster, resourceType string, needPrint bool) error
- func (o *GetOptions) Run(tkcContext *config.TkcContext, cmd *cobra.Command, args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdGet ¶
func NewCmdGet(tkcContext *config.TkcContext, streams genericclioptions.IOStreams) *cobra.Command
NewCmdGet creates the get command which get the tidb component detail
Types ¶
type GetOptions ¶
type GetOptions struct { LabelSelector string AllClusters bool Namespace string TidbClusterName string ResourceName string GetPD bool GetTiKV bool GetTiDB bool GetVolume bool IsHumanReadablePrinter bool PrintFlags *readable.PrintFlags genericclioptions.IOStreams // contains filtered or unexported fields }
GetOptions contains the input to the list command.
func NewGetOptions ¶
func NewGetOptions(streams genericclioptions.IOStreams) *GetOptions
NewGetOptions returns a GetOptions
func (*GetOptions) Complete ¶
func (o *GetOptions) Complete(tkcContext *config.TkcContext, cmd *cobra.Command, args []string) error
func (*GetOptions) PrintOutput ¶ added in v1.0.1
func (o *GetOptions) PrintOutput(tc *v1alpha1.TidbCluster, resourceType string, needPrint bool) error
func (*GetOptions) Run ¶
func (o *GetOptions) Run(tkcContext *config.TkcContext, cmd *cobra.Command, args []string) error
Click to show internal directories.
Click to hide internal directories.