diff options
| author | Zhang Wei <zhangwei555@huawei.com> | 2015-09-13 20:00:05 +0800 |
|---|---|---|
| committer | Zhang Wei <zhangwei555@huawei.com> | 2015-09-15 16:45:38 +0800 |
| commit | 304bfd6261ee7bbac245c60bb34a8c193c86c58d (patch) | |
| tree | 47d202bdd9f1471fdca96e827788024575ad2f91 /libnetwork/drivers/remote/api | |
| parent | 17f56bac82051d24dc3a8ccd31708d0d7dc4e703 (diff) | |
| download | docker-304bfd6261ee7bbac245c60bb34a8c193c86c58d.tar.gz | |
Add negotiation process for driver scope
Add one capability negotiation interaction after plugin handshake, use
this to determine plugin's capability instead of default "global" scope.
Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
Diffstat (limited to 'libnetwork/drivers/remote/api')
| -rw-r--r-- | libnetwork/drivers/remote/api/api.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libnetwork/drivers/remote/api/api.go b/libnetwork/drivers/remote/api/api.go index 2a0d297ce5..2d441ab7d2 100644 --- a/libnetwork/drivers/remote/api/api.go +++ b/libnetwork/drivers/remote/api/api.go @@ -16,6 +16,12 @@ func (r *Response) GetError() string { return r.Err } +// GetCapabilityResponse is the response of GetCapability request +type GetCapabilityResponse struct { + Response + Scope string +} + // CreateNetworkRequest requests a new network. type CreateNetworkRequest struct { // A network ID that remote plugins are expected to store for future |
