Documentation ¶
Index ¶
- type Client
- func (n *Client) AdjustTaskGroupCount(job *api.Job, groupName string, delta int) error
- func (n *Client) GetNodeID(name string) (id string, err error)
- func (n *Client) RestartJob(jobName string) error
- func (n *Client) RestartTaskGroup(jobName string, groupName string) error
- func (n *Client) SetTaskGroupCount(job *api.Job, groupName string, count int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a Nomad API client
func NewNomadClient ¶
NewNomadClient creates a new Nomad API client
func (*Client) AdjustTaskGroupCount ¶
AdjustTaskGroupCount raises/lowers the count of a task group
func (*Client) GetNodeID ¶
GetNodeID gets a Nomad node ID from a node name, and errors if more/less than one matching name is found
func (*Client) RestartJob ¶
RestartJob restarts a nomad job by deregistering/registering
func (*Client) RestartTaskGroup ¶
RestartTaskGroup restarts a Nomad task group by temporarily setting the count to zero
Click to show internal directories.
Click to hide internal directories.