container

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetworkSetup

func NetworkSetup(dhcpIfaces *[]DHCPInterface) error

func RunDHCP

func RunDHCP(dhcpIface *DHCPInterface) error

func RunVM

func RunVM(md *vmmd.VMMetadata, dhcpIfaces *[]DHCPInterface) error

Types

type DHCPInterface

type DHCPInterface struct {
	VMIPNet   *net.IPNet
	GatewayIP *net.IP
	VMTAP     string
	Bridge    string
	Hostname  string
	MACFilter string
	// contains filtered or unexported fields
}

func (*DHCPInterface) ServeDHCP

func (i *DHCPInterface) ServeDHCP(p dhcp.Packet, msgType dhcp.MessageType, options dhcp.Options) dhcp.Packet

func (*DHCPInterface) SetDNSServers

func (i *DHCPInterface) SetDNSServers(dns []string)

Parse the DNS servers for the DHCP server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL