Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteFirecracker ¶ added in v0.4.0
func ExecuteFirecracker(md *vmmd.VM, dhcpIfaces []DHCPInterface) error
ExecuteFirecracker executes the firecracker process using the Go SDK
func StartDHCPServers ¶ added in v0.4.0
func StartDHCPServers(vm *vmmd.VM, dhcpIfaces []DHCPInterface) error
StartDHCPServers starts multiple DHCP servers for the VM, one per interface
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 SetupContainerNetworking ¶ added in v0.4.0
func SetupContainerNetworking() ([]DHCPInterface, error)
func (*DHCPInterface) ServeDHCP ¶
func (i *DHCPInterface) ServeDHCP(p dhcp.Packet, msgType dhcp.MessageType, options dhcp.Options) dhcp.Packet
ServeDHCP responds to a DHCP request
func (*DHCPInterface) SetDNSServers ¶
func (i *DHCPInterface) SetDNSServers(dns []string)
Parse the DNS servers for the DHCP server
func (*DHCPInterface) StartBlockingServer ¶ added in v0.4.0
func (i *DHCPInterface) StartBlockingServer() error
StartBlockingServer starts a blocking DHCP server on port 67
Click to show internal directories.
Click to hide internal directories.