cronjob

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Schedule string `json:"schedule"`
	TimeZone string `json:"timeZone"`
}

Config is the config for CronJob.

func (*Config) String

func (c *Config) String() string

type CronJob

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

CronJob triggers Actions on a schedule.

func (*CronJob) Init

func (c *CronJob) Init(properties *runtime.RawExtension, eh eventhandler.EventHandler) error

Init initializes the CronJob.

func (*CronJob) New

func (c *CronJob) New() types.Source

New creates a new CronJob.

func (*CronJob) Run

func (c *CronJob) Run(ctx context.Context) error

Run starts the CronJob.

func (*CronJob) Singleton

func (c *CronJob) Singleton() bool

Singleton .

func (*CronJob) Type

func (c *CronJob) Type() string

Type returns the type of the CronJob.

type Event

type Event struct {
	Config    `json:",inline"`
	TimeFired metav1.Time `json:"timeFired"`
}

Event is the context passed to Actions.

Jump to

Keyboard shortcuts

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