Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckItemID ¶
type CheckItemID string
CheckItemID is the ID of a precheck item
const ( CheckLargeDataFile CheckItemID = "CHECK_LARGE_DATA_FILES" CheckSourcePermission CheckItemID = "CHECK_SOURCE_PERMISSION" CheckTargetTableEmpty CheckItemID = "CHECK_TARGET_TABLE_EMPTY" CheckSourceSchemaValid CheckItemID = "CHECK_SOURCE_SCHEMA_VALID" CheckCheckpoints CheckItemID = "CHECK_CHECKPOINTS" CheckCSVHeader CheckItemID = "CHECK_CSV_HEADER" CheckTargetClusterSize CheckItemID = "CHECK_TARGET_CLUSTER_SIZE" CheckTargetClusterEmptyRegion CheckItemID = "CHECK_TARGET_CLUSTER_EMPTY_REGION" CheckTargetClusterRegionDist CheckItemID = "CHECK_TARGET_CLUSTER_REGION_DISTRIBUTION" CheckTargetClusterVersion CheckItemID = "CHECK_TARGET_CLUSTER_VERSION" CheckLocalDiskPlacement CheckItemID = "CHECK_LOCAL_DISK_PLACEMENT" CheckLocalTempKVDir CheckItemID = "CHECK_LOCAL_TEMP_KV_DIR" CheckTargetUsingCDCPITR CheckItemID = "CHECK_TARGET_USING_CDC_PITR" )
CheckItemID constants
func (CheckItemID) DisplayName ¶
func (c CheckItemID) DisplayName() string
DisplayName returns display name for it.
type CheckResult ¶
type CheckResult struct { Item CheckItemID Severity CheckType Passed bool Message string }
CheckResult is the result of a precheck item
type Checker ¶
type Checker interface { // Check checks whether it meet some prerequisites for importing // If the check is skipped, the returned `CheckResult` is nil Check(ctx context.Context) (*CheckResult, error) GetCheckItemID() CheckItemID }
Checker is the interface for precheck items
Click to show internal directories.
Click to hide internal directories.