cronjob

package
v1.16.3 Latest Latest
Warning

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

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

Documentation

Overview

Package cronjob contains the controller for CronJob objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsJobFinished

func IsJobFinished(j *batchv1.Job) bool

IsJobFinished returns whether or not a job has completed successfully or failed.

Types

type Controller

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

Controller is a controller for CronJobs.

func NewController

func NewController(kubeClient clientset.Interface) (*Controller, error)

NewController creates and initializes a new Controller.

func (*Controller) Run

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

Run starts the main goroutine responsible for watching and syncing jobs.

Jump to

Keyboard shortcuts

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