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 ¶ added in v0.43.0
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)
Click to show internal directories.
Click to hide internal directories.