nomadex v0.1.0 Nomadex.Task
Nomad task definition. More information available at https://www.nomadproject.io/docs/job-specification/task.html
Summary
Types
Functions
Add artifact required to run task.
Options:
:source
- source of the artifact:dest
- destination of the artifact relative to the task’s directory:opts
- additional options, to be found here
Examples
iex> task = Nomadex.Task.new(:exec)
...> |> Nomadex.Task.add_artifact(source: "http://example.com/task.tgz")
iex> hd(task.artifacts)
%{
"GetterOptions" => %{},
"GetterSource" => "http://example.com/task.tgz",
"RelativeDest" => "local/"
}
Create new Nomadex.Task
with provided driver