Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( NodeActions = []string{ "checks", "compliance_auto", "pusharray", "pushasset", "pushdisks", "pushpkg", "pushstats", "pushswitch", "sysreport", } // PlaceholderActions are the actions a schedule entry can carry that no om // command implements yet. // // The node configuration schedules one per backup section, as it does per // array and per switch section, and nothing pushes it yet. Naming it here // says the entry is known and unimplemented, rather than letting it fall // through as an action nobody has heard of, and wiring it later is a case // in CmdArgs and a move to NodeActions. // // It has no default schedule, so an entry only exists where a // configuration wrote one. PlaceholderActions = []string{ "pushbackup", } ObjectActions = []string{ "compliance_auto", "info", "resource_monitor", "run", "status", "update", } )
NodeActions and ObjectActions list the schedule entry actions CmdArgs knows how to run, split by the scope of the om command each one runs.
Functions ¶
func CmdArgs ¶
CmdArgs returns the om argv the scheduler runs for the entry.
These words are a contract with the om command tree, and nothing but that tree enforces it: an argv naming no command has om print a help text and exit 0, which the scheduler reports as a successful run. core/om's TestSchedulerCmdArgsResolve keeps this function and the tree in sync.