Help us shape the future of Go! Take the 2026 Go Developer Survey

cron

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 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 CronConfig

type CronConfig struct {
	CronDir string
	User    string
}

type CronJob

type CronJob struct {
	Name     string
	Schedule string // Cron expression
	Command  string
	User     string
	Enabled  bool
}

type CronPlugin

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

func New

func New() *CronPlugin

func (*CronPlugin) AddCronJob

func (p *CronPlugin) AddCronJob(job *CronJob) error

AddCronJob adds a cron job

func (*CronPlugin) Capabilities

func (p *CronPlugin) Capabilities() []plugin.Capability

func (*CronPlugin) Init

func (p *CronPlugin) Init(ctx context.Context, config map[string]interface{}) error

func (*CronPlugin) ListCronJobs

func (p *CronPlugin) ListCronJobs() ([]*CronJob, error)

ListCronJobs lists all Mandau-managed cron jobs

func (*CronPlugin) Name

func (p *CronPlugin) Name() string

func (*CronPlugin) RemoveCronJob

func (p *CronPlugin) RemoveCronJob(name string) error

RemoveCronJob removes a cron job

func (*CronPlugin) Shutdown

func (p *CronPlugin) Shutdown(ctx context.Context) error

func (*CronPlugin) Version

func (p *CronPlugin) Version() string

Jump to

Keyboard shortcuts

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