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 WaitAndDeleteRunningBackupPod(f *framework.Framework, backup *v1alpha1.Backup, timeout time.Duration) error
- func WaitBackupPodOnPhase(f *framework.Framework, backup *v1alpha1.Backup, phase corev1.PodPhase, ...) error
- 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 WaitForBackupFailed(c versioned.Interface, ns, name string, timeout time.Duration) error
- func WaitForBackupOnRunning(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 ¶
const ( BRType = "br" DumperType = "dumper" )
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 WaitAndDeleteRunningBackupPod ¶ added in v1.4.4
func WaitBackupPodOnPhase ¶ added in v1.4.4
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 WaitForBackupFailed ¶ added in v1.4.4
WaitForBackupFailed will poll and wait until timeout or backup failed condition is true
func WaitForBackupOnRunning ¶ added in v1.4.4
WaitForBackupOnRunning will poll and wait until timeout or backup phause is running
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.