Documentation
¶
Overview ¶
Package launchd renders parameterised macOS launchd job definitions (plist files) and writes them to a LaunchAgents directory. It is the mechanism; callers supply the per-vault Job specs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CalInterval ¶
type CalInterval struct {
Weekday, Hour, Minute int
}
CalInterval is one StartCalendarInterval entry. A field set to -1 is omitted, so {Weekday: -1, Hour: 7, Minute: 3} means "07:03 every day".
type EnvVar ¶
type EnvVar struct {
Key, Value string
}
EnvVar is one EnvironmentVariables entry. A slice (not a map) keeps rendering deterministic for idempotent writes.
type Job ¶
type Job struct {
Label string
Program []string // ProgramArguments
WorkingDir string
EnvVars []EnvVar
RunAtLoad bool
KeepAlive bool
Throttle int // ThrottleInterval seconds; 0 omits the key
Schedule []CalInterval // 0 = none, 1 = single dict, >1 = array
LogPath string
}
Job is a single launchd agent definition.
Click to show internal directories.
Click to hide internal directories.