Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { // Handle is a function to be called by scheduler Handle(object types.NamespacedName) error }
Handler is an interface that scheduler can call
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler watches RegistryJobs and calls the job handlers, considering how many runs are running (in a jobPool)
func (Scheduler) Notify ¶
func (s Scheduler) Notify(job *v1.RegistryJob)
Notify notifies scheduler to sync
func (*Scheduler) RegisterHandler ¶
func (s *Scheduler) RegisterHandler(newType v1.RegistryJobType, handler Handler) error
RegisterHandler registers a handler which the scheduler can call
Click to show internal directories.
Click to hide internal directories.