Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorServiceNotFound = errors.New("service not found") ErrorServiceNotRunning = errors.New("service is not running") )
Generic errors
View Source
var ( // ScheduledSections are the command that can be scheduled (backup, retention, check) ScheduledSections = []string{ constants.CommandBackup, constants.SectionConfigurationRetention, constants.CommandCheck, } )
Functions ¶
Types ¶
type Config ¶
type Config interface {
Title() string
SubTitle() string
JobDescription() string
TimerDescription() string
Schedules() []string
Permission() string
WorkingDirectory() string
Command() string
Arguments() []string
Environment() map[string]string
Nice() int
Logfile() string
}
Config contains all the information needed to schedule a Job
type Permission ¶
type Permission int
Permission is either system or user
const ( PermissionUser Permission = iota PermissionSystem )
Permission
func (Permission) String ¶
func (p Permission) String() string
Click to show internal directories.
Click to hide internal directories.