Documentation ¶
Index ¶
- func CheckClusterVersion(ctx context.Context, client pd.Client) error
- func CheckTiDBVersion(versionStr string, requiredMinVersion, requiredMaxVersion semver.Version) error
- func CheckVersion(component string, ...) error
- func ExtractTiDBVersion(version string) (*semver.Version, error)
- func IsTiFlash(store *metapb.Store) bool
- func NextMajorVersion() semver.Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckClusterVersion ¶
CheckClusterVersion check TiKV version.
func CheckTiDBVersion ¶
func CheckTiDBVersion(versionStr string, requiredMinVersion, requiredMaxVersion semver.Version) error
CheckTiDBVersion is equals to ExtractTiDBVersion followed by CheckVersion.
func CheckVersion ¶
func CheckVersion(component string, actual, requiredMinVersion, requiredMaxVersion semver.Version) error
CheckVersion checks if the actual version is within [requiredMinVersion, requiredMaxVersion).
func ExtractTiDBVersion ¶
ExtractTiDBVersion extracts TiDB version from TiDB SQL `version()` outputs.
func NextMajorVersion ¶
NextMajorVersion returns the next major version.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.