scheduler

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package scheduler acts as "cron" for scheduled AMT tasks and continuous monitoring of clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJob

func CreateJob(body io.ReadCloser) string

CreateJob accepts a web-GUI submitted job, scheduled or interactive

func GetLaststatesJSON

func GetLaststatesJSON() string

GetLaststatesJSON is consumed by webserver to report current client state.

func MonitoringRunloop

func MonitoringRunloop(verbose bool)

MonitoringRunloop periodically scans clients' powerstate via AMT.

func ScheduledJobsRunloop

func ScheduledJobsRunloop(verbose bool)

ScheduledJobsRunloop periodically checks DB for scheduled tasks.

func UpdateJob

func UpdateJob(id int, body io.ReadCloser) string

UpdateJob updates a scheduled job in DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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