package
5.3.0-alpha+incompatible
Repository: https://github.com/pingcap/br.git
Documentation: pkg.go.dev

# Functions

ArchiveSize returns the total size of the backup archive.
CheckGCSafePoint checks whether the ts is older than GC safepoint.
ClampInt restrict a value to a certain interval.
CompareEndKey compared two keys that BOTH represent the EXCLUSIVE ending of some range.
EncloseDBAndTable formats the database and table name in sql.
EncloseName formats name in sql.
GetSysDBName get the original name of system DB.
IsSysDB tests whether the database is system DB.
LoadBackupTables loads schemas from BackupMeta.
LogEnvVariables logs related environment variables.
MakeSafePointID makes a unique safe point ID, for reduce name conflict.
MarshalBackupMeta converts the backupmeta strcture to JSON.
MaxInt choice biggest integer from its arguments.
MessageIsNotFoundStorageError checks whether the message returning from TiKV is "NotFound" storage I/O error.
MessageIsPermissionDeniedStorageError checks whether the message returning from TiKV is "PermissionDenied" storage I/O error.
MessageIsRetryableStorageError checks whether the message returning from TiKV is retryable ExternalStorageError.
MinInt choice smallest integer from its arguments.
MinInt64 choice smallest integer from its arguments.
NeedAutoID checks whether the table needs backing up with an autoid.
NewProgressPrinter returns a new progress printer.
NewWorkerPool returns a WorkPool.
NextPowerOfTwo returns the smallest power of two greater than or equal to `i` Caller should guarantee that i > 0 and the return value is not overflow.
ParseKey parse key by given format.
StartDynamicPProfListener starts the listener that will enable pprof when received `startPProfSignal`.
StartPProfListener forks a new goroutine listening on specified port and provide pprof info.
StartProgress starts progress bar.
StartServiceSafePointKeeper will run UpdateServiceSafePoint periodicity hence keeping service safepoint won't lose.
TemporaryDBName makes a 'private' database name.
UnmarshalBackupMeta converts the prettied JSON format of backupmeta (made by MarshalBackupMeta) back to the go structure.
WithRetry retries a given operation with a backoff policy.

# Constants

DefaultBRGCSafePointTTL means PD keep safePoint limit at least 5min.

# Structs

BRServiceSafePoint is metadata of service safe point from a BR 'instance'.
Database wraps the schema and tables of a database.
ProgressPrinter prints a progress bar.
Worker identified by ID.
WorkerPool contains a pool of workers.

# Interfaces

Backoffer implements a backoff policy for retrying operations.

# Type aliases

RetryableFunc presents a retryable operation.