get

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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