mysqlbackup

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BackupSuffix is the file extension that will be uploaded into storage
	// provider
	BackupSuffix = "xbackup.gz"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlBackup

type MysqlBackup struct {
	*api.MysqlBackup
}

MysqlBackup is a type wrapper over MysqlBackup that contains the Business logic

func New

func New(backup *api.MysqlBackup) *MysqlBackup

New returns a wraper object over MysqlBackup

func (*MysqlBackup) GetBackupURL

func (b *MysqlBackup) GetBackupURL(cluster *mysqlcluster.MysqlCluster) string

GetBackupURL returns a backup URL

func (*MysqlBackup) GetNameForJob

func (b *MysqlBackup) GetNameForJob() string

GetNameForJob returns the name of the job

func (*MysqlBackup) SetDefaults

func (w *MysqlBackup) SetDefaults(cluster *mysqlcluster.MysqlCluster)

SetDefaults sets default for backup

func (*MysqlBackup) Unwrap

func (b *MysqlBackup) Unwrap() *api.MysqlBackup

Unwrap returns the api mysqlbackup object

func (*MysqlBackup) UpdateStatusCondition

func (c *MysqlBackup) UpdateStatusCondition(condType api.BackupConditionType,
	status core.ConditionStatus, reason, msg string)

UpdateStatusCondition sets the condition to a status. for example Ready condition to True, or False

Jump to

Keyboard shortcuts

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