nomadex v0.1.0 Nomadex.Job

Description of Nomad’s job. More information available at https://www.nomadproject.io/docs/job-specification/index.html

Summary

Types

t()
t() :: %Nomadex.Job{all_at_once: boolean, constraints: list, datacenters: [String.t, ...], id: String.t, meta: Nomadex.meta, name: String.t, payload: iodata | nil, priority: term, task_groups: [Nomadex.TaskGroup.t, ...], type: :batch | :service | :system}

Functions

add_task_group(job, group)
add_task_group(t, Nomadex.TaskGroup.t) :: t

Add Nomadex.TaskGroup to job specification

new(name, datacenters, type \\ :service)