dhcp

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurator

type Configurator struct {
	// contains filtered or unexported fields
}

func NewConfigurator

func NewConfigurator(cacheFactory cache.InterfaceCacheFactory, launcherPID string, advertisingIfaceName string, handler netdriver.NetworkHandler) *Configurator

NewConfigurator should be used when the DHCP server is expected to reply all client requests, independently of their MAC address

func NewConfiguratorWithClientFilter

func NewConfiguratorWithClientFilter(cacheFactory cache.InterfaceCacheFactory, launcherPID string, advertisingIfaceName string, handler netdriver.NetworkHandler) *Configurator

NewConfiguratorWithClientFilter should be used when the DHCP server is expected to only reply to the MAC specified in the `cache.DhcpConfig` struct

func (Configurator) EnsureDhcpServerStarted

func (d Configurator) EnsureDhcpServerStarted(podInterfaceName string, dhcpConfig cache.DhcpConfig, dhcpOptions *v1.DHCPOptions) error

func (Configurator) ExportConfiguration

func (d Configurator) ExportConfiguration(config cache.DhcpConfig) error

func (Configurator) ImportConfiguration

func (d Configurator) ImportConfiguration(ifaceName string) (*cache.DhcpConfig, error)

Jump to

Keyboard shortcuts

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