NomadCrd.NomadBackend (nomad_crd v0.1.5)

Link to this section Summary

Link to this section Functions

Link to this function

create_job(job)

@spec create_job(%NomadClient.Model.Job{
  Affinities: term(),
  AllAtOnce: term(),
  Constraints: term(),
  ConsulNamespace: term(),
  ConsulToken: term(),
  CreateIndex: term(),
  Datacenters: term(),
  DispatchIdempotencyToken: term(),
  Dispatched: term(),
  ID: term(),
  JobModifyIndex: term(),
  Meta: term(),
  Migrate: term(),
  ModifyIndex: term(),
  Multiregion: term(),
  Name: term(),
  Namespace: term(),
  NomadTokenID: 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(),
  VaultNamespace: term(),
  VaultToken: term(),
  Version: term()
}) ::
  {:ok,
   %NomadClient.Model.Job{
     Affinities: term(),
     AllAtOnce: term(),
     Constraints: term(),
     ConsulNamespace: term(),
     ConsulToken: term(),
     CreateIndex: term(),
     Datacenters: term(),
     DispatchIdempotencyToken: term(),
     Dispatched: term(),
     ID: term(),
     JobModifyIndex: term(),
     Meta: term(),
     Migrate: term(),
     ModifyIndex: term(),
     Multiregion: term(),
     Name: term(),
     Namespace: term(),
     NomadTokenID: 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(),
     VaultNamespace: 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)