Versions in this module Expand all Collapse all v0 v0.5.0 Apr 13, 2017 Changes in this version + const NotificationTypeComment + const NotificationTypePowerOff + const NotificationTypePowerOn + const NotificationTypeUser + const NotificationTypeWarning + var DbDriver string + var DbFile string + var DbHost string + var DbName string + var DbPassword string + var DbPort string + var DbUser string + func CloseDB() + func DeleteHost(id int) (string, bool) + func DeleteJob(id int) (string, bool) + func DeleteOptionset(id int) (string, bool) + func DeleteOu(id int) (string, bool) + func DeleteUser(id int) (string, bool) + func GetHostJSON(id int) string + func GetHostNamesByID(ids []string) (hostnames []string) + func GetHostsJSON() string + func GetJobJSON(id int) string + func GetJobsJSON() string + func GetLaststateJSON(id int) string + func GetLogdaysJSON() string + func GetNotificationJSON(id int) string + func GetNotificationsJSON() string + func GetOptionset(id int) (o amt.Optionset) + func GetOptionsetJSON(id int) string + func GetOptionsets() (optionsets []amt.Optionset) + func GetOptionsetsJSON() string + func GetOuJSON(id int) string + func GetOusJSON() string + func GetStatelogsJSON(ouid int, unixtime int) []byte + func GetUserJSON(id int) string + func GetUsersJSON() string + func InitDB() + func InitDBMysql() + func InitDBSQlite() + func InsertHost(body io.ReadCloser) string + func InsertJob(j Job) string + func InsertNotification(ntype string, message string) + func InsertOptionset(body io.ReadCloser) string + func InsertOu(body io.ReadCloser) string + func InsertStatelog(hostid int, http int, amt int, port int) + func InsertUser(u User) + func OpenDB() + func OpenDBMySQL() + func OpenDBSQlite() + func UpdateJob(j Job) string + func UpdateOptionset(id int, body io.ReadCloser) string + func UpdateOu(id int, body io.ReadCloser) string + type Host struct + Enabled int + Hostname string + ID int + OuID int + func GetHosts() (hosts []Host) + func GetHostsByOu(ou int) (hosts []Host) + type Hosts struct + Hosts []Host + type Job struct + AmtcBootdevice *string + AmtcCmd *string + AmtcDelay *float64 + AmtcHosts *string + Description *string + ID int + JobStatus int + JobType int + LastDone *int + LastStarted *int + OuID *int + ProcPid *int + RepeatDays *int + RepeatInterval *int + StartTime int + UserID int + func GetScheduledJobs(weekDay int, minuteOfDay int) (myjobs []Job) + type Jobs struct + Jobs []Job + type Notification struct + ID int + Message string + Ntype string + Tstamp int + UserID int + type Notifications struct + Notifications []Notification + type Ou struct + Description string + ID int + IdlePower float32 + Logging int + Name string + OptionsetID *int + ParentID *int + func GetOu(id int) (o Ou) + func GetOus() (ous []Ou) + type Ous struct + Ous []Ou + type Statelog struct + HostID int + OpenPort int + StateAMT int + StateBegin int + StateHTTP int + type Statelogs struct + Statelogs []Statelog + type User struct + CanControl int + Fullname string + ID int + IsAdmin int + IsEnabled int + Name string + OuID int + Passsalt string + Password string + func GetUser(name string) (u User) + func GetUsers() (users []User) + type Users struct + Users []User