Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultBridgeIface = "hyper0" DefaultBridgeIP = "192.168.123.0/24" )
Variables ¶
View Source
var ( IpAllocator = ipallocator.New() PortMapper = portmapper.New() BridgeIPv4Net *net.IPNet BridgeIface string BridgeIP string )
Functions ¶
func InitNetwork ¶
Types ¶
type Settings ¶
type Settings struct { Mac string IPAddress string IPPrefixLen int Gateway string Bridge string Device string File *os.File Automatic bool }
func Configure ¶
func Configure(vmId, requestedIP string, addrOnly bool, maps []pod.UserContainerPort, config pod.UserInterface) (*Settings, error)
Click to show internal directories.
Click to hide internal directories.