Skip to content

Commit

Permalink
Merge pull request #338 from Paulswith/master
Browse files Browse the repository at this point in the history
Add 'status' field to ListServicesOptions for enhanced service status retrieval
  • Loading branch information
fussybeaver authored Feb 10, 2024
2 parents ea739cd + 55dcbf7 commit 0972b1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use std::{collections::HashMap, hash::Hash};
///
/// ListServicesOptions{
/// filters,
/// ..Default::default()
/// };
/// ```
///
Expand All @@ -49,6 +50,9 @@ where
/// - `name`=`<name>` a services's name
#[serde(serialize_with = "crate::docker::serialize_as_json")]
pub filters: HashMap<T, Vec<T>>,

/// Include service status, with count of running and desired tasks.
pub status: bool,
}

/// Parameters used in the [Inspect Service API](Docker::inspect_service())
Expand Down

0 comments on commit 0972b1a

Please sign in to comment.