package
Version:
v0.0.0-...-c0ac931
Opens a new window with list of versions in this module.
Published: Aug 23, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
-
func NewClient(c Config) (*api.Client, error)
-
func Restart(client *api.Client, jobID, group, task, image string) (string, error)
-
func Scale(client *api.Client, jobID, group string, scale, min, max int) (string, int, error)
-
func SetCapacity(client *api.Client, jobID, groupID string, count, min, max int) (string, int, error)
-
type Config
-
type Group
-
type Job
NewClient will create a instance of a nomad API Client
Restart restarts a job to get the latest docker image
Scale increases or decreases the count of a task group
Returns EvaluationID (string), New Count (int), Error
SetCapacity sets the count of a task group
type Config struct {
Address string `hcl:"address"`
}
Config struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.