Merge Go frontend (apiserver + xcecli) into meson build
This commit is contained in:
parent
43dc12a36c
commit
c9dc8c4676
205 changed files with 30793 additions and 328 deletions
45
src/frontend/apiserver/models/clusters.go
Normal file
45
src/frontend/apiserver/models/clusters.go
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
package models
|
||||
|
||||
const (
|
||||
CLUSTER_RECONFIG = 1
|
||||
CLUSTER_RESTART = 2
|
||||
CLUSTER_SHUTDOWN = 3
|
||||
)
|
||||
|
||||
var CLUSTERSTAT = map[string]int{
|
||||
"DISCONNECT": 0x0,
|
||||
"CONNECTED": 0x01,
|
||||
}
|
||||
|
||||
var JSONBCLFields = []string{"resources", "host_types", "host_models", "cluster_admins"}
|
||||
|
||||
type ClusterInfo struct {
|
||||
ClusterName string `json:"cluster_name"`
|
||||
Version string `json:"version"`
|
||||
Status int `json:"status"`
|
||||
ControllerName string `json:"controller_name"`
|
||||
NumServers int `json:"num_servers"`
|
||||
Resources string `json:"resources"`
|
||||
HostTypes string `json:"host_types"`
|
||||
HostModels string `json:"host_models"`
|
||||
ClusterAdmins string `json:"cluster_admins"`
|
||||
}
|
||||
|
||||
var CLUSTER_SUPPORT_FILTERS = []string{
|
||||
"cluster_name",
|
||||
}
|
||||
|
||||
var CLUSTER_DEFAULT_COLUMN = []string{
|
||||
"cluster_name",
|
||||
"version",
|
||||
"status",
|
||||
"controller_name",
|
||||
"resources",
|
||||
"host_types",
|
||||
"host_models",
|
||||
"cluster_admins",
|
||||
}
|
||||
|
||||
var CLUSTER_SUPPORT_SORT = []string{
|
||||
"cluster_name",
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue