moby--moby/api/types
Yong Tang 158b2a1875 Add `scope` filter in `/networks/<id>`
This fix tries to add a `scope` in the query of `/networks/<id>`
(`NetworkInspect`) so that in case of duplicate network names,
it is possible to locate the network ID based on the network
scope (`local`, 'swarm', or `global`).

Multiple networks might exist in different scopes, which is a legitimate case.
For example, a network name `foo` might exists locally and in swarm network.

However, before this PR it was not possible to query a network name `foo`
in a specific scope like swarm.

This fix fixes the issue by allowing a `scope` query in `/networks/<id>`.

Additional test cases have been added to unit tests and integration tests.

This fix is related to docker/cli#167, moby/moby#30897, moby/moby#33561, moby/moby#30242

This fix fixes docker/cli#167

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-06-12 09:54:25 -07:00
..
backend Refactor imageContexts into two different structs. 2017-05-10 17:59:30 -04:00
blkiodev
container Update ContainerWait API 2017-05-16 15:11:39 -07:00
events support cluster events 2017-05-17 11:46:30 -07:00
filters use t.Fatal() to output the err message where the values used for formatting 2017-02-23 10:16:22 +08:00
image Set expected response headers for Ping. 2017-01-03 11:47:47 -05:00
mount Add 'consistent', 'cached', and 'delegated' mode flags 2017-03-01 18:13:47 +00:00
network Adding network specific options to service create/update 2017-05-17 18:46:34 -07:00
plugins/logdriver Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
registry Merge pull request #33237 from aaronlehmann/oci-types 2017-05-17 02:40:11 +02:00
strslice
swarm remove RuntimeData from cluster and types 2017-05-19 17:10:32 -04:00
time fix typo in api/types/time/timestamp.go 2017-01-14 14:16:03 +08:00
versions Merge pull request #28651 from YuPengZTE/devMD002 2016-11-22 13:11:37 +01:00
volume hack/swagger-gen.sh is not exist, it should be /hack/generate-swagger-api.sh 2016-11-22 16:32:32 +08:00
auth.go
client.go Moving docker service digest pinning to client side 2017-05-15 16:42:43 -07:00
configs.go Enforce zero plugin refcount during disable. 2016-12-22 13:26:53 -08:00
error_response.go
graph_driver_data.go Generate GraphDriver from spec, and fix up image spec. 2017-01-03 11:47:47 -05:00
id_response.go
image_delete_response_item.go Generate ImageDeleteResponse from swagger spec. 2017-01-03 11:47:47 -05:00
image_summary.go
plugin.go Embed DockerVersion in plugin config. 2017-03-22 10:26:20 -07:00
plugin_device.go
plugin_env.go
plugin_interface_type.go
plugin_mount.go
plugin_responses.go Rewrite the function 'validatePrivileges' without checking order 2017-02-04 08:47:40 +08:00
port.go
seccomp.go change minor mistake of spelling 2016-12-20 21:05:19 +08:00
service_update_response.go Return warnings from service create and service update when digest pinning fails 2016-11-18 09:31:31 -08:00
stats.go Correct CPU usage calculation in presence of offline CPUs and newer Linux 2017-03-10 10:24:33 +00:00
types.go Add `scope` filter in `/networks/<id>` 2017-06-12 09:54:25 -07:00
volume.go Add CreatedAt filed to volume. Display when volume is inspected. 2017-05-26 11:47:02 -07:00