moby/libnetwork/drivers/macvlan
Cory Snider 28edc8e2d6 libnet: convert to new-style driver registration
Per the Interface Segregation Principle, network drivers should not have
to depend on GetPluginGetter methods they do not use. The remote network
driver is the only one which needs a PluginGetter, and it is already
special-cased in Controller so there is no sense warping the interfaces
to achieve a foolish consistency. Replace all other network drivers' Init
functions with Register functions which take a driverapi.Registerer
argument instead of a driverapi.DriverCallback. Add back in Init wrapper
functions for only the drivers which Swarmkit references so that
Swarmkit can continue to build.

Refactor the libnetwork Controller to use the new drvregistry.Networks
and drvregistry.IPAMs driver registries in place of the legacy ones.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-01-27 11:47:42 -05:00
..
mvmanager libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
macvlan.go libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
macvlan_endpoint.go libnetwork: drop InitOSContext() 2022-10-25 13:35:44 -04:00
macvlan_joinleave.go libnetwork: drop InitOSContext() 2022-10-25 13:35:44 -04:00
macvlan_network.go libnetwork: drop InitOSContext() 2022-10-25 13:35:44 -04:00
macvlan_setup.go libnetwork: macvlan: reduce use of const for driver name 2022-07-01 13:07:39 +02:00
macvlan_setup_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
macvlan_state.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
macvlan_store.go libnetwork: fix empty-lines (revive) 2022-09-26 19:21:58 +02:00
macvlan_test.go libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00