mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
24 lines
503 B
Go
24 lines
503 B
Go
|
package libnetwork
|
||
|
|
||
|
import (
|
||
|
"github.com/docker/libnetwork/driverapi"
|
||
|
"github.com/docker/libnetwork/drivers/bridge"
|
||
|
"github.com/docker/libnetwork/drivers/host"
|
||
|
"github.com/docker/libnetwork/drivers/null"
|
||
|
"github.com/docker/libnetwork/drivers/remote"
|
||
|
)
|
||
|
|
||
|
func initDrivers(dc driverapi.DriverCallback) error {
|
||
|
for _, fn := range [](func(driverapi.DriverCallback) error){
|
||
|
bridge.Init,
|
||
|
host.Init,
|
||
|
null.Init,
|
||
|
remote.Init,
|
||
|
} {
|
||
|
if err := fn(dc); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
}
|
||
|
return nil
|
||
|
}
|