Files
docker-cli/cli/command
Sebastiaan van Stijn 7405ac5c2d Services: use ServiceStatus on API v1.41 and up
API v1.41 adds a new option to get the number of desired
and running tasks when listing services. This patch enables
this functionality, and provides a fallback mechanism when
the ServiceStatus is not available, which would be when
using an older API version.

Now that the swarm.Service struct captures this information,
the `ListInfo` type is no longer needed, so it is removed,
and the related list- and formatting functions have been
modified accordingly.

To reduce repetition, sorting the services has been moved
to the formatter. This is a slight change in behavior, but
all calls to the formatter performed this sort first, so
the change will not lead to user-facing changes.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-10-29 15:49:28 +01:00
..
2018-06-08 18:24:26 +02:00
2019-01-08 00:35:24 +01:00
2018-06-08 18:24:26 +02:00
2018-06-08 18:24:26 +02:00
2018-11-08 11:37:49 +01:00
2018-10-23 17:05:44 +02:00
2019-04-18 15:49:36 +02:00
2017-09-01 19:41:06 -04:00
2019-01-10 22:25:43 +01:00
2019-03-28 21:08:13 +00:00