restore

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestoreManager

type RestoreManager struct {
	StatusUpdater controller.RestoreConditionUpdaterInterface
	RestoreOpts
	// contains filtered or unexported fields
}

RestoreManager mainly used to manage backup related work

func NewRestoreManager

func NewRestoreManager(
	restoreLister listers.RestoreLister,
	statusUpdater controller.RestoreConditionUpdaterInterface,
	backupOpts RestoreOpts) *RestoreManager

NewRestoreManager return a RestoreManager

func (*RestoreManager) ProcessRestore

func (rm *RestoreManager) ProcessRestore() error

ProcessRestore used to process the restore logic

type RestoreOpts

type RestoreOpts struct {
	Namespace   string
	TcName      string
	Password    string
	TidbSvc     string
	User        string
	RestoreName string
	BackupPath  string
	BackupName  string
}

RestoreOpts contains the input arguments to the restore command

func (*RestoreOpts) String

func (ro *RestoreOpts) String() string

Jump to

Keyboard shortcuts

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