Merge Go frontend (apiserver + xcecli) into meson build

This commit is contained in:
Rongsong Shen 2026-04-14 11:20:17 +08:00
parent 43dc12a36c
commit c9dc8c4676
205 changed files with 30793 additions and 328 deletions

View 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",
}