storage

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

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

Jump to

Keyboard shortcuts

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