scheduledjob

package
v1.5.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package scheduledjob contains the controller for ScheduledJob objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncOne

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

SyncOne reconciles a ScheduledJob 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 ScheduledJobController

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

func NewScheduledJobController

func NewScheduledJobController(kubeClient clientset.Interface) *ScheduledJobController

func NewScheduledJobControllerFromClient

func NewScheduledJobControllerFromClient(kubeClient clientset.Interface) *ScheduledJobController

func (*ScheduledJobController) Run

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

Run the main goroutine responsible for watching and syncing jobs.

func (*ScheduledJobController) SyncAll

func (jm *ScheduledJobController) SyncAll()

SyncAll lists all the ScheduledJobs and Jobs and reconciles them.

Jump to

Keyboard shortcuts

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