2015-02-20 01:37:53 +00:00
|
|
|
package libnetwork
|
|
|
|
|
2015-02-20 06:21:05 +00:00
|
|
|
import (
|
2015-04-13 18:40:42 +00:00
|
|
|
"github.com/docker/libnetwork/drivers/bridge"
|
2015-05-03 20:37:22 +00:00
|
|
|
"github.com/docker/libnetwork/drivers/host"
|
2016-06-14 02:38:18 +00:00
|
|
|
"github.com/docker/libnetwork/drivers/macvlan"
|
2015-04-30 05:56:59 +00:00
|
|
|
"github.com/docker/libnetwork/drivers/null"
|
2015-09-18 21:00:36 +00:00
|
|
|
"github.com/docker/libnetwork/drivers/overlay"
|
2015-05-06 23:57:38 +00:00
|
|
|
"github.com/docker/libnetwork/drivers/remote"
|
2015-02-20 06:21:05 +00:00
|
|
|
)
|
2015-02-20 01:37:53 +00:00
|
|
|
|
2016-12-13 21:22:55 +00:00
|
|
|
func getInitializers(experimental bool) []initializer {
|
2016-03-03 01:13:15 +00:00
|
|
|
in := []initializer{
|
2015-09-18 21:00:36 +00:00
|
|
|
{bridge.Init, "bridge"},
|
|
|
|
{host.Init, "host"},
|
2016-06-14 02:38:18 +00:00
|
|
|
{macvlan.Init, "macvlan"},
|
2015-09-18 21:00:36 +00:00
|
|
|
{null.Init, "null"},
|
|
|
|
{remote.Init, "remote"},
|
|
|
|
{overlay.Init, "overlay"},
|
2015-02-20 06:21:05 +00:00
|
|
|
}
|
2016-03-03 01:13:15 +00:00
|
|
|
|
2016-12-13 21:22:55 +00:00
|
|
|
if experimental {
|
|
|
|
in = append(in, additionalDrivers()...)
|
|
|
|
}
|
2016-03-03 01:13:15 +00:00
|
|
|
return in
|
2015-02-20 17:12:29 +00:00
|
|
|
}
|