crontab

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Shell    string
	Environ  map[string]string
	Timezone *time.Location
}

type Crontab

type Crontab struct {
	Jobs    []*Job
	Context *Context
}

func ParseCrontab

func ParseCrontab(reader io.Reader) (*Crontab, error)

type CrontabLine

type CrontabLine struct {
	Expression Expression
	Schedule   string
	Command    string
}

type Expression

type Expression interface {
	Next(fromTime time.Time) time.Time
}

type Job

type Job struct {
	CrontabLine
	Position int
}

Jump to

Keyboard shortcuts

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