Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseJSON ¶
func ParseJSON(orgJob nomad.Job, call string) (groupsMap map[string]structs.JobStruct, nomadJob nomad.Job)
ParseJSON takes a byte array from getJob and a string and checks that this nomad Job has the scalling stanza correctly declared inside of it. It also checks before scalling down that the current job is stable. This status check is ignored for scalling up just in case the application is not stable because it is overloaded by requests. Returns jobs []JobStruct and nomadJob nomad.Job
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.