Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMap = template.FuncMap{ "CronJobName": CronJobName, "PVCName": PVCName, "BackupInstanceNamePrefix": BackupInstanceNamePrefix, }
FuncMap can be used to execute templates with the helper functions from the Backup Schedule operator.
Functions ¶
func BackupInstanceNamePrefix ¶
BackupInstanceNamePrefix returns a name prefix for a backup instance.
func CronJobName ¶
CronJobName returns a name for a cron job associated with the given scheduleName.
Types ¶
type Operator ¶
type Operator interface {
AddBackupSchedule(backup *crv1.MySQLBackupSchedule) error
}
Operator represents an object to manipulate Backup custom resources.
func NewBackupScheduleOperator ¶
func NewBackupScheduleOperator(clientset versioned.Interface, kubeClientset kubernetes.Interface) Operator
NewBackupScheduleOperator returns a new Operator.
func NewFakeOperator ¶
func NewFakeOperator() Operator
NewFakeOperator returns new operator that does nothing.
Click to show internal directories.
Click to hide internal directories.