Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMinioStorage ¶
func NewMinioStorage(fw portforward.PortForward, ns, accessKey, secretKey string, cli clientset.Interface, s3config *v1alpha1.S3StorageProvider) (*minioStorage, context.CancelFunc, error)
func NewS3Storage ¶
func NewS3Storage(cred *credentials.Credentials, s3config *v1alpha1.S3StorageProvider) (*s3Storage, error)
Types ¶
type TestStorage ¶
type TestStorage interface {
// ProvideCredential provide the credential to connect to the TestStorage
ProvideCredential(ns string) *corev1.Secret
// ProvideBackup provide the Backup to save data in the TestStorage
ProvideBackup(tc *v1alpha1.TidbCluster, fromSecret *corev1.Secret, brType string) *v1alpha1.Backup
// ProvideRestore provide the Restore to restore data from the Test Storage
ProvideRestore(tc *v1alpha1.TidbCluster, toSecret *corev1.Secret, restoreType string) (*v1alpha1.Restore, error)
// CheckDataCleaned check whether TestStorage Clean
CheckDataCleaned() error
}
TestStorage Provide Object Storage Ability in Test
Click to show internal directories.
Click to hide internal directories.