Documentation ¶
Index ¶
- Constants
- func IntToPtr(i int) *int
- func NewAllocations(action structs.Action, client *api.Client, query *api.QueryOptions) *allocations
- func NewDeployments(action structs.Action, client *api.Client, query *api.QueryOptions) *deployments
- func NewForceEvaluate(action structs.Action, client *api.Client) *forceEvaluate
- func NewHealth(action structs.Action, client *api.Client, jobQuery *api.QueryOptions, ...) *health
- func NewInfo(action structs.Action, client *api.Client, query *api.QueryOptions) *info
- func NewList(action structs.Action, client *api.Client, query *api.QueryOptions) *list
- func NewPeriodicForce(action structs.Action, client *api.Client) *periodicForce
- func NewRestart(action structs.Action, client *api.Client) *restart
- func NewRollingRestart(action structs.Action, client *api.Client) *rollingRestart
- func NewScale(action structs.Action, client *api.Client) *scale
- func NewStop(action structs.Action, client *api.Client) *stop
- func NewSubmit(action structs.Action, client *api.Client, cfg *config.Config) *submit
- func NewVersions(action structs.Action, client *api.Client, query *api.QueryOptions) *versions
- func PtrToInt(i *int) int
Constants ¶
View Source
const ( WatchAllocations = "NOMAD_WATCH_JOB_ALLOCATIONS" UnwatchAllocations = "NOMAD_UNWATCH_JOB_ALLOCATIONS" )
View Source
const ( WatchDeployments = "NOMAD_WATCH_JOB_DEPLOYMENTS" UnwatchDeployments = "NOMAD_UNWATCH_JOB_DEPLOYMENTS" )
View Source
const ( FetchHealth = "NOMAD_FETCH_JOB_HEALTH" WatchHealth = "NOMAD_WATCH_JOB_HEALTH" UnwatchHealth = "NOMAD_UNWATCH_JOB_HEALTH" )
View Source
const ( WatchInfo = "NOMAD_WATCH_JOB" UnwatchInfo = "NOMAD_UNWATCH_JOB" )
View Source
const ( UnwatchList = "NOMAD_UNWATCH_JOBS" UnwatchListFiltered = "NOMAD_UNWATCH_JOBS_FILTERED" WatchList = "NOMAD_WATCH_JOBS" WatchListFiltered = "NOMAD_WATCH_JOBS_FILTERED" )
View Source
const ( WatchVersions = "NOMAD_WATCH_JOB_VERSIONS" UnwatchVersions = "NOMAD_UNWATCH_JOB_VERSIONS" )
View Source
const (
ForceEvaluate = "NOMAD_EVALUATE_JOB"
)
View Source
const (
PeriodicForce = "NOMAD_FORCE_PERIODIC_RUN"
)
View Source
const (
Restart = "NOMAD_RESTART_JOB"
)
View Source
const (
RollingRestart = "NOMAD_ROLLING_RESTART_JOB"
)
View Source
const (
Scale = "NOMAD_CHANGE_TASK_GROUP_COUNT"
)
View Source
const (
Stop = "NOMAD_STOP_JOB"
)
View Source
const (
Submit = "NOMAD_SUBMIT_JOB"
)
Variables ¶
This section is empty.
Functions ¶
func NewAllocations ¶
func NewDeployments ¶
func NewForceEvaluate ¶
func NewHealth ¶ added in v0.22.0
func NewHealth(action structs.Action, client *api.Client, jobQuery *api.QueryOptions, allocQuery *api.QueryOptions) *health
func NewPeriodicForce ¶
func NewRestart ¶ added in v0.21.0
func NewRollingRestart ¶ added in v0.24.0
func NewVersions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.