crontab

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJob

func AddJob(id, schedule, line string) error

func DaemonRunning

func DaemonRunning() (running bool, ok bool)

func FormatJob added in v1.0.1

func FormatJob(id, schedule, line string) string

func Read

func Read() (string, error)

func RemoveJob

func RemoveJob(id string) error

func Write

func Write(content string) error

Types

type ForeignEntry added in v1.0.1

type ForeignEntry struct {
	Schedule    string
	Command     string
	Name        string
	Line        string
	LineNo      int
	CommentLine int
	Err         string
}

func ForeignEntries added in v1.0.1

func ForeignEntries() ([]ForeignEntry, error)

Jump to

Keyboard shortcuts

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