container

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const MODE_DHCP = "dhcp-bridge"
View Source
const MODE_TC = "tc-redirect"

Variables

This section is empty.

Functions

func ExecuteFirecracker added in v0.4.0

func ExecuteFirecracker(vm *api.VM, fcIfaces firecracker.NetworkInterfaces) (err error)

ExecuteFirecracker executes the firecracker process using the Go SDK

func StartDHCPServers added in v0.4.0

func StartDHCPServers(vm *api.VM, dhcpIfaces []DHCPInterface) error

StartDHCPServers starts multiple DHCP servers for the VM, one per interface It returns the IP addresses that the API object may post in .status, and a potential 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 SetupContainerNetworking added in v0.4.0

func SetupContainerNetworking(vm *api.VM) (firecracker.NetworkInterfaces, []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

Jump to

Keyboard shortcuts

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