Join / Leave Driver API

Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
Madhu Venugopal
2015-04-30 14:52:46 -07:00
parent 3686b72c56
commit 2e27ab5aad
6 changed files with 109 additions and 10 deletions
+6
View File
@@ -40,6 +40,12 @@ type Driver interface {
// passing the network id and endpoint id.
DeleteEndpoint(nid, eid types.UUID) error
// Join method is invoked when a Sandbox is attached to an endpoint.
Join(nid, eid types.UUID, sboxKey string, options map[string]interface{}) error
// Leave method is invoked when a Sandbox detaches from an endpoint.
Leave(nid, eid types.UUID, options map[string]interface{}) error
// Type returns the the type of this driver, the network type this driver manages
Type() string
}