mysqlbackup

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 9 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) GetBackupCondition added in v0.2.8

func (c *MysqlBackup) GetBackupCondition(condType api.BackupConditionType) *api.BackupCondition

GetBackupCondition returns a pointer to the condition of the provided type

func (*MysqlBackup) GetBackupURL

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

GetBackupURL returns a backup URL

func (*MysqlBackup) GetNameForDeletionJob added in v0.2.8

func (b *MysqlBackup) GetNameForDeletionJob() string

GetNameForDeletionJob returns the name for the hard deletion job.

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) String added in v0.4.0

func (b *MysqlBackup) String() string

String returns the backup name and namespace

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