cronjob

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2017 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cronjob contains the controller for CronJob objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncOne

func SyncOne(sj batch.CronJob, js []batch.Job, now time.Time, jc jobControlInterface, sjc sjControlInterface, pc podControlInterface, recorder record.EventRecorder)

SyncOne reconciles a CronJob with a list of any Jobs that it created. All known jobs created by "sj" should be included in "js". The current time is passed in to facilitate testing. It has no receiver, to facilitate testing.

Types

type CronJobController

type CronJobController struct {
	// contains filtered or unexported fields
}

func NewCronJobController

func NewCronJobController(kubeClient clientset.Interface) *CronJobController

func NewCronJobControllerFromClient

func NewCronJobControllerFromClient(kubeClient clientset.Interface) *CronJobController

func (*CronJobController) Run

func (jm *CronJobController) Run(stopCh <-chan struct{})

Run the main goroutine responsible for watching and syncing jobs.

func (*CronJobController) SyncAll

func (jm *CronJobController) SyncAll()

SyncAll lists all the CronJobs and Jobs and reconciles them.

Jump to

Keyboard shortcuts

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