mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e797f80ad4
- Added api enhancement to pass driver specific config - Refactored simple bridge driver code for driver specific config - Added an undocumented option to add non-default bridges without manual pre-provisioning to help libnetwork testing - Reenabled libnetwork test to do api testing - Updated README.md Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
19 lines
378 B
Go
19 lines
378 B
Go
package libnetwork
|
|
|
|
import (
|
|
"github.com/docker/libnetwork/driverapi"
|
|
"github.com/docker/libnetwork/drivers/bridge"
|
|
)
|
|
|
|
type driverTable map[string]driverapi.Driver
|
|
|
|
func enumerateDrivers() driverTable {
|
|
drivers := make(driverTable)
|
|
|
|
for _, fn := range [](func() (string, driverapi.Driver)){bridge.New} {
|
|
name, driver := fn()
|
|
drivers[name] = driver
|
|
}
|
|
|
|
return drivers
|
|
}
|