Documentation ¶
Overview ¶
Package handler holds the interface that backends implement, handlers take in, and the top level dhcp package passes to handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendReader ¶
type BackendReader interface { // Read data (from a backend) based on a mac address // and return DHCP headers and options, including netboot info. GetByMac(context.Context, net.HardwareAddr) (*data.DHCP, *data.Netboot, error) GetByIP(context.Context, net.IP) (*data.DHCP, *data.Netboot, error) RegisterHw(context.Context, v1alpha1.Hardware) error }
BackendReader is the interface for getting data from a backend.
Backends implement this interface to provide DHCP and Netboot data to the handlers.
Directories ¶
Path | Synopsis |
---|---|
Package noop is a handler that does nothing.
|
Package noop is a handler that does nothing. |
Package reservation is the handler for responding to DHCPv4 messages with only host reservations.
|
Package reservation is the handler for responding to DHCPv4 messages with only host reservations. |
Click to show internal directories.
Click to hide internal directories.