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.
Click to show internal directories.
Click to hide internal directories.