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