a0a8d9d057
There is no meaningful distinction between driverapi.Registerer and drvregistry.DriverNotifyFunc. They are both used to register a network driver with an interested party. They have the same function signature. The only difference is that the latter could be satisfied by an anonymous closure. However, in practice the only implementation of drvregistry.DriverNotifyFunc is the (*libnetwork.Controller).RegisterDriver method. This same method also makes the libnetwork.Controller type satisfy the Registerer interface, therefore the DriverNotifyFunc type is redundant. Change drvregistry.Networks to notify a Registerer and drop the DriverNotifyFunc type. Signed-off-by: Cory Snider <csnider@mirantis.com> |
||
---|---|---|
.. | ||
ipams.go | ||
ipams_test.go | ||
networks.go | ||
networks_test.go |