pub struct TaskGroup {Show 22 fields
pub constraints: Vec<Constraint>,
pub migrate: Option<MigrateStrategy>,
pub shutdown_delay: Option<TimeDelta>,
pub scaling: Option<ScalingPolicy>,
pub count: Option<i64>,
pub affinities: Vec<Affinity>,
pub restart_policy: Option<RestartPolicy>,
pub disconnect: Option<DisconnectStrategy>,
pub stop_after_client_disconnect: Option<TimeDelta>,
pub consul: Option<Consul>,
pub tasks: Vec<Task>,
pub reschedule_policy: Option<ReschedulePolicy>,
pub ephemeral_disk: Option<EphemeralDisk>,
pub update: Option<UpdateStrategy>,
pub max_client_disconnect: Option<TimeDelta>,
pub services: Vec<Service>,
pub prevent_reschedule_on_lost: Option<bool>,
pub name: Option<String>,
pub spreads: Vec<Spread>,
pub volumes: HashMap<String, VolumeRequest>,
pub networks: Vec<NetworkResource>,
pub meta: HashMap<String, String>,
}
Expand description
TaskGroup is the unit of scheduling.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§constraints: Vec<Constraint>
§migrate: Option<MigrateStrategy>
§shutdown_delay: Option<TimeDelta>
§scaling: Option<ScalingPolicy>
§count: Option<i64>
§affinities: Vec<Affinity>
§restart_policy: Option<RestartPolicy>
§disconnect: Option<DisconnectStrategy>
§stop_after_client_disconnect: Option<TimeDelta>
Deprecated: StopAfterClientDisconnect is deprecated in Nomad 1.8. Use Disconnect.StopOnClientAfter instead.
consul: Option<Consul>
§tasks: Vec<Task>
§reschedule_policy: Option<ReschedulePolicy>
§ephemeral_disk: Option<EphemeralDisk>
§update: Option<UpdateStrategy>
§max_client_disconnect: Option<TimeDelta>
To be deprecated after 1.8.0 infavour of Disconnect.LostAfter
services: Vec<Service>
§prevent_reschedule_on_lost: Option<bool>
To be deprecated after 1.8.0 infavour of Disconnect.Replace
name: Option<String>
§spreads: Vec<Spread>
§volumes: HashMap<String, VolumeRequest>
§networks: Vec<NetworkResource>
§meta: HashMap<String, String>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskGroup
impl<'de> Deserialize<'de> for TaskGroup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TaskGroup
Auto Trait Implementations§
impl Freeze for TaskGroup
impl RefUnwindSafe for TaskGroup
impl Send for TaskGroup
impl Sync for TaskGroup
impl Unpin for TaskGroup
impl UnwindSafe for TaskGroup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more