job

package
v0.0.0-...-daa3d23 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrossplaneResourcesSync

type CrossplaneResourcesSync struct {
	// contains filtered or unexported fields
}

func NewCrossplaneResourcesSync

func NewCrossplaneResourcesSync(log logging.Logger, frequency string, dbStore *captenstore.Store) (*CrossplaneResourcesSync, error)

func (*CrossplaneResourcesSync) CronSpec

func (s *CrossplaneResourcesSync) CronSpec() string

func (*CrossplaneResourcesSync) Run

func (s *CrossplaneResourcesSync) Run()

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(log logging.Logger) *Scheduler

func (*Scheduler) AddJob

func (t *Scheduler) AddJob(jobName string, job jobHandler) error

func (*Scheduler) GetJobs

func (t *Scheduler) GetJobs() map[string]jobHandler

func (*Scheduler) RemoveJob

func (t *Scheduler) RemoveJob(jobName string) error

RemoveJob ...

func (*Scheduler) Start

func (t *Scheduler) Start()

func (*Scheduler) Stop

func (t *Scheduler) Stop()

Jump to

Keyboard shortcuts

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