mikejmoore / docker-swarm-sdk

Ruby SDK for Docker Swarm
MIT License
18 stars 9 forks source link

Add filter support for Swarm tasks instance method #4

Open hostingnuggets opened 7 years ago

hostingnuggets commented 7 years ago

Right now the tasks instance method (http://www.rubydoc.info/gems/docker-swarm-api/Docker/Swarm/Swarm#tasks-instance_method) of the Swarm class does not take any parameters and as such returns every tasks in a swarm.

It would be a good idea to add a parameter to the tasks method in order to filter by any valid filter criteria (e.g. service=<service name>) as defined in the Docker API here: https://docs.docker.com/engine/api/v1.27/#tag/Task

hostingnuggets commented 4 years ago

@mikejmoore / @mmoore1915 any news on this issue?