Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
func NewController ¶
func NewController(s Service) Controller
type CronJob ¶
type CronJob struct { ID string `json:"id"` Namespace string `json:"namespace"` Name string `json:"name"` Schedule string `json:"schedule"` }
func NewCronJob ¶
type EventHandler ¶
type EventHandler interface { OnCronJobAdd(cronJob *batchv1.CronJob) OnCronJobUpdate(oldCronJob, newCronJob *batchv1.CronJob) OnCronJobDelete(cronJob *batchv1.CronJob) }
func NewEventHandler ¶
func NewEventHandler(h events.Hub) EventHandler
type Service ¶
func NewService ¶
func NewService(lister batchv1.CronJobLister) Service
Click to show internal directories.
Click to hide internal directories.