diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2020-09-02 18:13:58 +0200 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2020-09-07 15:39:41 +0200 |
commit | 5b8f3f2f1f863dfb58e5d3cfda95e7ecb6582b22 (patch) | |
tree | a413ccdad49a09f2bae47dff5c549d12465ccb27 /pkg/api/server | |
parent | 1184cdf03d8464451d36b24643e57b65a8b97980 (diff) | |
download | podman-5b8f3f2f1f863dfb58e5d3cfda95e7ecb6582b22.tar.gz podman-5b8f3f2f1f863dfb58e5d3cfda95e7ecb6582b22.tar.bz2 podman-5b8f3f2f1f863dfb58e5d3cfda95e7ecb6582b22.zip |
APIv2 Add network list filtering
Add the filter option to the libpod endpoint.
Add support for the name filter on the docker endpoint.
Add apiv2 tests for the network list endpoints.
Enable podman network integration tests for remote.
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'pkg/api/server')
-rw-r--r-- | pkg/api/server/register_networks.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/api/server/register_networks.go b/pkg/api/server/register_networks.go index 7918ad4a2..f12b45e10 100644 --- a/pkg/api/server/register_networks.go +++ b/pkg/api/server/register_networks.go @@ -61,6 +61,11 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error { // - networks (compat) // summary: List networks // description: Display summary of network configurations + // parameters: + // - in: query + // name: filters + // type: string + // description: JSON encoded value of the filters (a map[string][]string) to process on the networks list. Only the name filter is supported. // produces: // - application/json // responses: @@ -152,6 +157,11 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error { // - networks // summary: List networks // description: Display summary of network configurations + // parameters: + // - in: query + // name: filter + // type: string + // description: Provide filter values (e.g. 'name=podman') // produces: // - application/json // responses: |