mirror of
				https://github.com/cloudnativelabs/kube-router.git
				synced 2025-11-03 20:21:28 +01:00 
			
		
		
		
	* Use libnetwork/ipvs alternative * PR image tag simplification * Remove nested vendor directories
		
			
				
	
	
		
			27 lines
		
	
	
		
			629 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			629 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package libnetwork
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/docker/libnetwork/drivers/bridge"
 | 
						|
	"github.com/docker/libnetwork/drivers/host"
 | 
						|
	"github.com/docker/libnetwork/drivers/macvlan"
 | 
						|
	"github.com/docker/libnetwork/drivers/null"
 | 
						|
	"github.com/docker/libnetwork/drivers/overlay"
 | 
						|
	"github.com/docker/libnetwork/drivers/remote"
 | 
						|
)
 | 
						|
 | 
						|
func getInitializers(experimental bool) []initializer {
 | 
						|
	in := []initializer{
 | 
						|
		{bridge.Init, "bridge"},
 | 
						|
		{host.Init, "host"},
 | 
						|
		{macvlan.Init, "macvlan"},
 | 
						|
		{null.Init, "null"},
 | 
						|
		{remote.Init, "remote"},
 | 
						|
		{overlay.Init, "overlay"},
 | 
						|
	}
 | 
						|
 | 
						|
	if experimental {
 | 
						|
		in = append(in, additionalDrivers()...)
 | 
						|
	}
 | 
						|
	return in
 | 
						|
}
 |