cronjob

package
v0.0.0-...-9037469 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	List(c *gin.Context)
}

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

func NewCronJob(cronJob *batchv1.CronJob) *CronJob

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

type Service interface {
	List() ([]CronJob, error)
}

func NewService

func NewService(lister batchv1.CronJobLister) Service

Jump to

Keyboard shortcuts

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