package
Version:
v0.0.0-...-29e28e0
Opens a new window with list of versions in this module.
Published: Sep 19, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
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, groupID 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
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.