initial work of api server
This commit is contained in:
parent
280c22671f
commit
70970434ca
13 changed files with 394 additions and 9 deletions
|
|
@ -127,6 +127,7 @@ enum HostRole {
|
|||
worker @1;
|
||||
scheduler @2;
|
||||
controller @3;
|
||||
apiserver @4;
|
||||
}
|
||||
|
||||
struct JoinData $C.mapname("xce_joindata_t") {
|
||||
|
|
@ -179,8 +180,8 @@ struct Resource $C.mapname("xce_resource_t"){
|
|||
flags @5: Int32;
|
||||
interval @6: Int32;
|
||||
lastReport @7: UInt64 $C.mapname("last_report");
|
||||
distributions @8: List(ResourceDistribution) $C.maplistcount("ndistributions");
|
||||
hostBased @9: Value $C.mapname("hbased_defined");
|
||||
# distributions @8: List(ResourceDistribution) $C.maplistcount("ndistributions");
|
||||
# hostBased @9: Value $C.mapname("hbased_defined");
|
||||
}
|
||||
|
||||
struct Threshold $C.mapname("xce_res_threshold_t"){
|
||||
|
|
@ -227,6 +228,7 @@ struct ConfigData $C.mapname("xce_configdata_t") {
|
|||
data :union $C.mapuniontag("data_which") {
|
||||
schedconfig @0: Conf4Sched $C.mapname("conf4sched");
|
||||
workerconfig @1: Conf4Worker $C.mapname("conf4worker");
|
||||
clusterconfig @2: ClusterConfig $C.mapname("clusterconfig");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue