container

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: Apache-2.0 Imports: 19 Imported by: 1

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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