package util

const PackageName = "ClusterMigration"
const PackageNameString = "Cluster Migration Guide Tool"

type TiDBClusterComponentType int

const (
	TiDBComponentType TiDBClusterComponentType = iota
	TiKVComponentType
	TiFlashComponentType
	PDComponentType
)

func (t *TiDBClusterComponentType) ToString() string {
	switch *t {
	case TiDBComponentType:
		return "TiDB"
	case TiKVComponentType:
		return "TiKV"
	case TiFlashComponentType:
		return "TiFlash"
	case PDComponentType:
		return "PD"
	}

	return ""
}
