dmaasbackup

package
v0.1.1-ee Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DMaaSBackupper

type DMaaSBackupper interface {
	// Execute creates the velero backup for given dmaasbackup
	Execute(obj *v1alpha1.DMaaSBackup, logger logrus.FieldLogger) (bool, error)

	// Delete perform the cleanup required as part of dmaasbackup deletion
	Delete(obj *v1alpha1.DMaaSBackup, logger logrus.FieldLogger) error
}

DMaaSBackupper execute operations on dmaasbackup resource

func NewDMaaSBackupper

func NewDMaaSBackupper(
	veleroNs string,
	dmaasClient clientset.Interface,
	veleroClient velerov1.VeleroV1Interface,
	veleroInformer velerov1informer.Interface,
	clock apimachineryclock.Clock,
) DMaaSBackupper

NewDMaaSBackupper returns the interface to execute operation on dmaasbackup resource

type ScheduleByCreationTimestamp

type ScheduleByCreationTimestamp []v1alpha1.VeleroScheduleDetails

ScheduleByCreationTimestamp sorts a list of veleroschedule by creation timestamp, using their names as a tie breaker.

func (ScheduleByCreationTimestamp) Len

func (ScheduleByCreationTimestamp) Less

func (o ScheduleByCreationTimestamp) Less(i, j int) bool

func (ScheduleByCreationTimestamp) Swap

func (o ScheduleByCreationTimestamp) Swap(i, j int)

Jump to

Keyboard shortcuts

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