backupschedule

package
v0.0.0-...-87ef7df Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 12 Imported by: 8

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

func BackupInstanceNamePrefix(scheduleName string) string

BackupInstanceNamePrefix returns a name prefix for a backup instance.

func CronJobName

func CronJobName(scheduleName string) string

CronJobName returns a name for a cron job associated with the given scheduleName.

func PVCName

func PVCName(scheduleName string) string

PVCName returns a name for a PVC associated with the given backupName.

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.

Jump to

Keyboard shortcuts

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