mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
d565a4df48
Currently the driver configuration is pushed through a separate api. This makes driver configuration possible at any arbitrary time. This unncessarily complicates the driver implementation. More importantly the driver does not get access to it's configuration before it can do the handshake with libnetwork. This make the internal drivers a little bit different to external plugins which can get their configuration before the handshake with libnetwork. This PR attempts to fix that mismatch between internal drivers and external plugins. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
13 lines
241 B
Go
13 lines
241 B
Go
package libnetwork
|
|
|
|
import (
|
|
"github.com/docker/libnetwork/drivers/null"
|
|
"github.com/docker/libnetwork/drivers/remote"
|
|
)
|
|
|
|
func getInitializers() []initializer {
|
|
return []initializer{
|
|
{null.Init, "null"},
|
|
{remote.Init, "remote"},
|
|
}
|
|
}
|