mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
d56c6de9b2
Signed-off-by: John Howard <jhoward@microsoft.com>
19 lines
373 B
Go
19 lines
373 B
Go
package libnetwork
|
|
|
|
import (
|
|
"github.com/docker/libnetwork/driverapi"
|
|
"github.com/docker/libnetwork/drivers/windows"
|
|
)
|
|
|
|
type driverTable map[string]driverapi.Driver
|
|
|
|
func initDrivers(dc driverapi.DriverCallback) error {
|
|
for _, fn := range [](func(driverapi.DriverCallback) error){
|
|
windows.Init,
|
|
} {
|
|
if err := fn(dc); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|