jobs

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 IntToPtr

func IntToPtr(i int) *int

IntToPtr returns the pointer to an int

func NewAllocations

func NewAllocations(action structs.Action, client *api.Client, query *api.QueryOptions) *allocations

func NewDeployments

func NewDeployments(action structs.Action, client *api.Client, query *api.QueryOptions) *deployments

func NewForceEvaluate

func NewForceEvaluate(action structs.Action, client *api.Client) *forceEvaluate

func NewHealth added in v0.22.0

func NewHealth(action structs.Action, client *api.Client, jobQuery *api.QueryOptions, allocQuery *api.QueryOptions) *health

func NewInfo

func NewInfo(action structs.Action, client *api.Client, query *api.QueryOptions) *info

func NewList

func NewList(action structs.Action, client *api.Client, query *api.QueryOptions) *list

func NewPeriodicForce

func NewPeriodicForce(action structs.Action, client *api.Client) *periodicForce

func NewRestart added in v0.21.0

func NewRestart(action structs.Action, client *api.Client) *restart

func NewRollingRestart added in v0.24.0

func NewRollingRestart(action structs.Action, client *api.Client) *rollingRestart

func NewScale

func NewScale(action structs.Action, client *api.Client) *scale

func NewStop

func NewStop(action structs.Action, client *api.Client) *stop

func NewSubmit

func NewSubmit(action structs.Action, client *api.Client, cfg *config.Config) *submit

func NewVersions

func NewVersions(action structs.Action, client *api.Client, query *api.QueryOptions) *versions

func PtrToInt

func PtrToInt(i *int) int

PtrToInt returns the value of an *int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL