Documentation ¶
Index ¶
- func ConstructRestore2TiKVMetaStr() string
- func ConstructRestoreMetaStr() string
- func ConstructRestoreTiKVVolumesMetaWithStr() string
- func GenValidStorageProviders() []v1alpha1.StorageProvider
- type Helper
- func (h *Helper) Close()
- func (h *Helper) CreateRestore(restore *v1alpha1.Restore)
- func (h *Helper) CreateSecret(obj interface{})
- func (h *Helper) CreateTC(namespace, clusterName string, acrossK8s, recoverMode bool)
- func (h *Helper) CreateTCWithNoTiKV(namespace, clusterName string, acrossK8s, recoverMode bool)
- func (h *Helper) JobExists(restore *v1alpha1.Restore)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructRestore2TiKVMetaStr ¶ added in v1.5.0
func ConstructRestore2TiKVMetaStr() string
func ConstructRestoreMetaStr ¶ added in v1.4.0
func ConstructRestoreMetaStr() string
func ConstructRestoreTiKVVolumesMetaWithStr ¶ added in v1.5.1
func ConstructRestoreTiKVVolumesMetaWithStr() string
func GenValidStorageProviders ¶
func GenValidStorageProviders() []v1alpha1.StorageProvider
GenValidStorageProviders generates valid storage providers
Types ¶
type Helper ¶
type Helper struct { T *testing.T Deps *controller.Dependencies // contains filtered or unexported fields }
Helper is for testing backup related code only
func (*Helper) CreateRestore ¶ added in v1.4.0
func (*Helper) CreateSecret ¶
func (h *Helper) CreateSecret(obj interface{})
CreateSecret creates secrets based on backup/restore spec
func (*Helper) CreateTCWithNoTiKV ¶ added in v1.5.4
CreateTCWithNoTiKV creates a TidbCluster with name `clusterName` in ns `namespace` with no TiKV nodes
Click to show internal directories.
Click to hide internal directories.