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 WaitForRestoreComplete(c versioned.Interface, ns, name string, timeout time.Duration) error
Constants ¶
View Source
const ( BRType = "br" DumperType = "dumper" TiDBServicePort = int32(4000) )
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.