class Resources {
String role;
int cpu;
int mem;
}
class Environment {
String name;
String value;
}
class Constraints {
String field; // "RACK_ID"/"HOSTNAME"
Set values;
}
// 目前Container只支持运行Docker模式
class Container {
Docker docker;
String type; // "DOCKER"/"MESOS"
List volumes;
class Volume {
String containerPath;
String hostPath;
String dvo; // "RO"/"RW"
}
class Docker {
String image;
boolean forcePullImage;
boolean privileged;
String net; // "BRIDGE"/"HOST"/"NONE"/"USER"
List parameters;
List portMappings;
class PortMapping {
int containerPort;
int hostPort;
String protocol;
}
class Parameter {
String key;
String value;
}
}
}