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"` HeartbeatInterval int `json:"heartbeat_interval"` Vcpus int `json:"vcpus"` InactiveHeartbeatCount int `json:"inactive_heartbeat_count"` } 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", }