f770d4b448
Signed-off-by: Alexey Guskov <lexag@mail.ru>
21 lines
429 B
Go
21 lines
429 B
Go
package libnetwork
|
|
|
|
import (
|
|
"github.com/docker/libnetwork/driverapi"
|
|
"github.com/docker/libnetwork/drivers/null"
|
|
"github.com/docker/libnetwork/drivers/remote"
|
|
)
|
|
|
|
type driverTable map[string]driverapi.Driver
|
|
|
|
func initDrivers(dc driverapi.DriverCallback) error {
|
|
for _, fn := range [](func(driverapi.DriverCallback) error){
|
|
null.Init,
|
|
remote.Init,
|
|
} {
|
|
if err := fn(dc); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|