NomadCrd.NomadBackend (nomad_crd v0.1.3)

Link to this section Summary

Link to this section Functions

Link to this function

create_job(job)

Specs

create_job(%NomadClient.Model.Job{
  Affinities: term(),
  AllAtOnce: term(),
  Constraints: term(),
  ConsulToken: term(),
  CreateIndex: term(),
  Datacenters: term(),
  Dispatched: term(),
  ID: term(),
  JobModifyIndex: term(),
  Meta: term(),
  Migrate: term(),
  ModifyIndex: term(),
  Name: term(),
  Namespace: term(),
  ParameterizedJob: term(),
  ParentID: term(),
  Payload: term(),
  Periodic: term(),
  Priority: term(),
  Region: term(),
  Reschedule: term(),
  Spreads: term(),
  Stable: term(),
  Status: term(),
  StatusDescription: term(),
  Stop: term(),
  SubmitTime: term(),
  TaskGroups: term(),
  Type: term(),
  Update: term(),
  VaultToken: term(),
  Version: term()
}) ::
  {:ok,
   %NomadClient.Model.Job{
     Affinities: term(),
     AllAtOnce: term(),
     Constraints: term(),
     ConsulToken: term(),
     CreateIndex: term(),
     Datacenters: term(),
     Dispatched: term(),
     ID: term(),
     JobModifyIndex: term(),
     Meta: term(),
     Migrate: term(),
     ModifyIndex: term(),
     Name: term(),
     Namespace: term(),
     ParameterizedJob: term(),
     ParentID: term(),
     Payload: term(),
     Periodic: term(),
     Priority: term(),
     Region: term(),
     Reschedule: term(),
     Spreads: term(),
     Stable: term(),
     Status: term(),
     StatusDescription: term(),
     Stop: term(),
     SubmitTime: term(),
     TaskGroups: term(),
     Type: term(),
     Update: term(),
     VaultToken: term(),
     Version: term()
   }}
Link to this function

delete_job(job_id)

Link to this function

get_job(job_id)

Link to this function

update_job(job_id, job_update)