Documentation ¶
Index ¶
- Constants
- func GetBackup(ns, name, tcName, typ string, s3Config *v1alpha1.S3StorageProvider) *v1alpha1.Backup
- func GetRestore(ns, name, tcName, typ string, s3Config *v1alpha1.S3StorageProvider) *v1alpha1.Restore
- func GetRole(ns string) *rbacv1.Role
- func GetRoleBinding(ns string) *rbacv1.RoleBinding
- func GetSecret(ns, name, password string) *corev1.Secret
- func GetServiceAccount(ns string) *corev1.ServiceAccount
- func WaitForBackupComplete(c versioned.Interface, ns, name string, timeout time.Duration) error
- func WaitForBackupDeleted(c versioned.Interface, ns, name string, timeout time.Duration) error
- func WaitForLogBackupProgressReachTS(c versioned.Interface, ns, name, expect string, timeout time.Duration) error
- func WaitForLogBackupReachTS(name, pdhost, expect string, timeout time.Duration) error
- func WaitForRestoreComplete(c versioned.Interface, ns, name string, timeout time.Duration) error
- func WaitForRestoreProgressDone(c versioned.Interface, ns, name string, timeout time.Duration) error
Constants ¶
View Source
const ( BRType = "br" DumperType = "dumper" TiDBServicePort = int32(4000) PDServicePort = int32(2379) )
Variables ¶
This section is empty.
Functions ¶
func GetBackup ¶
func GetBackup(ns, name, tcName, typ string, s3Config *v1alpha1.S3StorageProvider) *v1alpha1.Backup
GetBackup return a basic backup
func GetRestore ¶
func GetRestore(ns, name, tcName, typ string, s3Config *v1alpha1.S3StorageProvider) *v1alpha1.Restore
func GetRoleBinding ¶
func GetRoleBinding(ns string) *rbacv1.RoleBinding
GetRoleBinding returns a rolebinding for br test.
func GetServiceAccount ¶
func GetServiceAccount(ns string) *corev1.ServiceAccount
GetServiceAccount returns a sa for br test.
func WaitForBackupComplete ¶
WaitForBackupComplete will poll and wait until timeout or backup complete condition is true
func WaitForBackupDeleted ¶
WaitForBackupDeleted will poll and wait until timeout or backup is really deleted
func WaitForLogBackupProgressReachTS ¶ added in v1.4.0
func WaitForLogBackupProgressReachTS(c versioned.Interface, ns, name, expect string, timeout time.Duration) error
WaitForLogBackupProgressReachTS will poll and wait until timeout or log backup tracker has update checkpoint ts to expect
func WaitForLogBackupReachTS ¶ added in v1.4.0
WaitForLogBackupReachTS will poll and wait until timeout or log backup reach expect ts
func WaitForRestoreComplete ¶
WaitForRestoreComplete will poll and wait until timeout or restore complete condition is true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.