Followed same format as cluster.json.
Instead of camelcase, used snake-case to match those used by the default Aurora python client.
This commit is contained in:
parent
ee57cfae4b
commit
91626dc7ec
3 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"username": "aurora",
|
"username": "aurora",
|
||||||
"password": "secret",
|
"password": "secret",
|
||||||
"schedUrl": "http://192.168.33.7:8081",
|
"sched_url": "http://192.168.33.7:8081",
|
||||||
"cluster" : {
|
"cluster" : {
|
||||||
"name": "devcluster",
|
"name": "devcluster",
|
||||||
"zk": "192.168.33.7",
|
"zk": "192.168.33.7",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"ram_mb": 64,
|
"ram_mb": 64,
|
||||||
"disk_mb": 100,
|
"disk_mb": 100,
|
||||||
"executor": "thermos",
|
"executor": "thermos",
|
||||||
"execDataFile": "examples/thermos_payload.json",
|
"exec_data_file": "examples/thermos_payload.json",
|
||||||
"service": true,
|
"service": true,
|
||||||
"ports": 1,
|
"ports": 1,
|
||||||
"instances": 1
|
"instances": 1
|
||||||
|
|
|
@ -39,7 +39,7 @@ type JobJson struct {
|
||||||
RAM int64 `json:"ram_mb"`
|
RAM int64 `json:"ram_mb"`
|
||||||
Disk int64 `json:"disk_mb"`
|
Disk int64 `json:"disk_mb"`
|
||||||
Executor string `json:"executor"`
|
Executor string `json:"executor"`
|
||||||
ExecutorDataFile string `json:"execDataFile,omitempty"`
|
ExecutorDataFile string `json:"exec_data_file,omitempty"`
|
||||||
Instances int32 `json:"instances"`
|
Instances int32 `json:"instances"`
|
||||||
URIs []URIJson `json:"uris"`
|
URIs []URIJson `json:"uris"`
|
||||||
Labels map[string]string `json:"labels"`
|
Labels map[string]string `json:"labels"`
|
||||||
|
@ -71,7 +71,7 @@ func (j *JobJson) Validate() bool {
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
SchedUrl string `json:"schedUrl"`
|
SchedUrl string `json:"sched_url"`
|
||||||
BinTransport bool `json:"bin_transport,omitempty"`
|
BinTransport bool `json:"bin_transport,omitempty"`
|
||||||
JsonTransport bool `json:"json_transport,omitempty"`
|
JsonTransport bool `json:"json_transport,omitempty"`
|
||||||
ClusterConfig *realis.Cluster `json:"cluster"`
|
ClusterConfig *realis.Cluster `json:"cluster"`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue