parser

package
v0.0.0-...-281381b Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseYaml

func ParseYaml(r io.Reader) (jobs []jobdef.Job, err error)

ParseYaml parses a yaml and returns a Job slice

Types

type CronJob

type CronJob struct {
	Second   string `yaml:"second"`
	Minute   string `yaml:"minute"`
	Hour     string `yaml:"hour"`
	MonthDay string `yaml:"monthday"`
	Month    string `yaml:"month"`
	WeekDay  string `yaml:"weekday"`
	Command  string `yaml:"command"`
	Shell    string `yaml:"shell"`
}

func (*CronJob) Spec

func (c *CronJob) Spec() string

Spec returns crontab spec (without command)

type CronJobs

type CronJobs map[string]CronJob

Jump to

Keyboard shortcuts

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