Class: Nomad::JobTask
Constant Summary
Constants inherited from Response
Instance Attribute Summary collapse
-
#artifacts ⇒ Array<JobArtifact>
readonly
The task artifacts.
-
#config ⇒ Hash<String,Object>
readonly
The task config.
-
#constraints ⇒ Array<JobConstraint>
readonly
The job constraints.
-
#dispatch_payload ⇒ String
readonly
The template dispatch_payload.
-
#driver ⇒ String
readonly
The task driver.
-
#env ⇒ Hash<String,String>
readonly
The task env.
-
#kill_timeout ⇒ Duration
readonly
The task kill_timeout.
-
#leader ⇒ Boolean
readonly
The task leader.
-
#log_config ⇒ JobLogConfig
readonly
The task log_config.
-
#meta ⇒ Hash<String,String>
readonly
The task meta.
-
#name ⇒ String
readonly
The task name.
-
#resources ⇒ JobResources
readonly
The task resources.
-
#services ⇒ Array<JobConstraint>
readonly
The job services.
-
#templates ⇒ Array<JobTemplate>
readonly
The task templates.
-
#user ⇒ String
readonly
The task user.
-
#vault ⇒ JobVault
readonly
The task vault configuration.
Method Summary
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Nomad::Response
Instance Attribute Details
#artifacts ⇒ Array<JobArtifact> (readonly)
The task artifacts.
816 817 818 |
# File 'lib/nomad/api/job.rb', line 816 field :Artifacts, as: :artifacts, load: ->(item) { Array(item).map { |i| JobArtifact.decode(i) } } |
#config ⇒ Hash<String,Object> (readonly)
The task config.
772 |
# File 'lib/nomad/api/job.rb', line 772 field :Config, as: :config, load: :stringify_keys |
#constraints ⇒ Array<JobConstraint> (readonly)
The job constraints.
777 778 779 |
# File 'lib/nomad/api/job.rb', line 777 field :Constraints, as: :constraints, load: ->(item) { Array(item).map { |i| JobConstraint.decode(i) } } |
#dispatch_payload ⇒ String (readonly)
The template dispatch_payload.
835 |
# File 'lib/nomad/api/job.rb', line 835 field :DispatchPayload, as: :dispatch_payload, load: ->(item) { JobDispatchPayload.decode(item) } |
#driver ⇒ String (readonly)
The task driver.
762 |
# File 'lib/nomad/api/job.rb', line 762 field :Driver, as: :driver, load: :string_as_nil |
#env ⇒ Hash<String,String> (readonly)
The task env.
784 |
# File 'lib/nomad/api/job.rb', line 784 field :Env, as: :env, load: :stringify_keys |
#kill_timeout ⇒ Duration (readonly)
The task kill_timeout.
806 |
# File 'lib/nomad/api/job.rb', line 806 field :KillTimeout, as: :kill_timeout, load: :nanoseconds_as_duration |
#leader ⇒ Boolean (readonly)
The task leader.
840 |
# File 'lib/nomad/api/job.rb', line 840 field :Leader, as: :leader |
#log_config ⇒ JobLogConfig (readonly)
The task log_config.
811 |
# File 'lib/nomad/api/job.rb', line 811 field :LogConfig, as: :log_config, load: ->(item) { JobLogConfig.decode(item) } |
#meta ⇒ Hash<String,String> (readonly)
The task meta.
801 |
# File 'lib/nomad/api/job.rb', line 801 field :Meta, as: :meta, load: :stringify_keys |
#name ⇒ String (readonly)
The task name.
757 |
# File 'lib/nomad/api/job.rb', line 757 field :Name, as: :name, load: :string_as_nil |
#resources ⇒ JobResources (readonly)
The task resources.
796 |
# File 'lib/nomad/api/job.rb', line 796 field :Resources, as: :resources, load: ->(item) { Resources.decode(item) } |
#services ⇒ Array<JobConstraint> (readonly)
The job services.
789 790 791 |
# File 'lib/nomad/api/job.rb', line 789 field :Services, as: :services, load: ->(item) { Array(item).map { |i| JobService.decode(i) } } |
#templates ⇒ Array<JobTemplate> (readonly)
The task templates.
828 829 830 |
# File 'lib/nomad/api/job.rb', line 828 field :Templates, as: :templates, load: ->(item) { Array(item).map { |i| JobTemplate.decode(i) } } |
#user ⇒ String (readonly)
The task user.
767 |
# File 'lib/nomad/api/job.rb', line 767 field :User, as: :user, load: :string_as_nil |