cronjob

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateCronjob

func CreateOrUpdateCronjob(cli *kubernetes.Clientset, cronjob *batchv1beta1.CronJob) (*batchv1beta1.CronJob, error)

func DeleteCronjob

func DeleteCronjob(cli *kubernetes.Clientset, name, namespace string) error

func SuspendCronjob

func SuspendCronjob(cli *kubernetes.Clientset, name, namespace string) error

Types

type CronJobSpec

type CronJobSpec struct {
	// This flag tells the controller to suspend subsequent executions, it does
	// not apply to already started executions.  Defaults to false.
	// +optional
	Suspend *bool `json:"suspend,omitempty" protobuf:"varint,4,opt,name=suspend"`
}

type Cronjob

type Cronjob struct {
	ObjectMeta common.ObjectMeta `json:"objectMeta"`
	Spec       CronJobSpec       `json:"spec"`
}

func GetCronjobDetail

func GetCronjobDetail(cli *kubernetes.Clientset, name, namespace string) (*Cronjob, error)

Jump to

Keyboard shortcuts

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