snapshot

package
v0.0.0-...-455d1a7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	*amc.Controller
	// contains filtered or unexported fields
}

func NewController

func NewController(
	controller *amc.Controller,
	snapshotter amc.Snapshotter,
	listOption metav1.ListOptions,
	syncPeriod time.Duration,
) *Controller

NewController creates a new Controller

func (*Controller) Run

func (c *Controller) Run()

func (*Controller) Setup

func (c *Controller) Setup() error

type CronControllerInterface

type CronControllerInterface interface {
	StartCron()
	ScheduleBackup(runtime.Object, metav1.ObjectMeta, *api.BackupScheduleSpec) error
	StopBackupScheduling(metav1.ObjectMeta)
	StopCron()
}

func NewCronController

func NewCronController(client kubernetes.Interface, extClient cs.KubedbV1alpha1Interface) CronControllerInterface

NewCronController returns CronControllerInterface. Need to call StartCron() method to start Cron.

Jump to

Keyboard shortcuts

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