Add HostConfig + Cluster fields to models and update docs
This commit is contained in:
parent
960ef62342
commit
00c4472d6c
9 changed files with 1805 additions and 9 deletions
|
|
@ -18,6 +18,9 @@ var HOSTSTAT = map[string]int{
|
|||
}
|
||||
|
||||
func HostStateStr(state int) string {
|
||||
if state == 0 {
|
||||
return "UNKNOWN"
|
||||
}
|
||||
if (state & HOSTSTAT["UNAVAIL"]) != 0 {
|
||||
return "UNAVAIL"
|
||||
} else if (state & HOSTSTAT["CLOSED"]) != 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue