backup

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
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

func GetRestore

func GetRestore(ns, name, tcName, typ string, s3Config *v1alpha1.S3StorageProvider) *v1alpha1.Restore

func GetRole

func GetRole(ns string) *rbacv1.Role

GetRole returns a role for br test.

func GetRoleBinding

func GetRoleBinding(ns string) *rbacv1.RoleBinding

GetRoleBinding returns a rolebinding for br test.

func GetSecret

func GetSecret(ns, name, password string) *corev1.Secret

GetSecret returns a secret to visit tidb.

func GetServiceAccount

func GetServiceAccount(ns string) *corev1.ServiceAccount

GetServiceAccount returns a sa for br test.

func WaitForBackupComplete

func WaitForBackupComplete(c versioned.Interface, ns, name string, timeout time.Duration) error

WaitForBackupComplete will poll and wait until timeout or backup complete condition is true

func WaitForBackupDeleted

func WaitForBackupDeleted(c versioned.Interface, ns, name string, timeout time.Duration) error

WaitForBackupDeleted will poll and wait until timeout or backup is really deleted

func WaitForRestoreComplete

func WaitForRestoreComplete(c versioned.Interface, ns, name string, timeout time.Duration) error

WaitForRestoreComplete will poll and wait until timeout or restore complete condition is true

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL