cron

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

type Cron struct {
	I *cron.Cron

	BackupId       cron.EntryID
	BackupSchedule string
	RotateId       cron.EntryID
	RotateSchedule string
	// contains filtered or unexported fields
}

func New

func New(timezone string) (*Cron, *errors.E)

func (*Cron) Start

func (c *Cron) Start(ctx context.Context,
	rotateSchedule string,
	rotateInput spec.RotateInput,
	backupSchedule string,
	dockerHosts []string,
	hostBackupDir string,
	containerBackupDir string,
	containers containers.Templates,
	notificationSettings *notifications.NotificationSettings,
) *errors.E

func (*Cron) Stop

func (c *Cron) Stop()

Jump to

Keyboard shortcuts

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