moby/libnetwork/drvregistry
Cory Snider a0a8d9d057 libnetwork: notify another driver registerer
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>
2023-08-29 10:32:18 -04:00
..
ipams.go libnetwork/drvregistry: split up the registries 2023-01-27 11:47:42 -05:00
ipams_test.go libnetwork: rename vars that collided with builtins 2023-08-16 12:34:25 +02:00
networks.go libnetwork: notify another driver registerer 2023-08-29 10:32:18 -04:00
networks_test.go libnetwork: move datastore Scope consts to libnetwork/scope 2023-07-28 21:56:48 +02:00