backup

package
v1.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupManager

type BackupManager struct {
	StatusUpdater controller.BackupConditionUpdaterInterface
	BackupOpts
	// contains filtered or unexported fields
}

BackupManager mainly used to manage backup related work

func NewBackupManager

func NewBackupManager(
	backupLister listers.BackupLister,
	statusUpdater controller.BackupConditionUpdaterInterface,
	backupOpts BackupOpts) *BackupManager

NewBackupManager return a BackupManager

func (*BackupManager) ProcessBackup

func (bm *BackupManager) ProcessBackup() error

ProcessBackup used to process the backup logic

func (*BackupManager) ProcessCleanBackup

func (bm *BackupManager) ProcessCleanBackup() error

ProcessCleanBackup used to clean the specific backup

type BackupOpts

type BackupOpts struct {
	Namespace   string
	TcName      string
	TidbSvc     string
	Password    string
	User        string
	StorageType string
	BackupName  string
}

BackupOpts contains the input arguments to the backup command

func (*BackupOpts) String

func (bo *BackupOpts) String() string

Jump to

Keyboard shortcuts

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