Documentation
¶
Overview ¶
Package data is an interface between DHCP backend implementations and the DHCP server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DHCP ¶
type DHCP struct {
MACAddress net.HardwareAddr // chaddr DHCP header.
IPAddress netip.Addr // yiaddr DHCP header.
SubnetMask net.IPMask // DHCP option 1.
DefaultGateway netip.Addr // DHCP option 3.
NameServers []net.IP // DHCP option 6.
Hostname string // DHCP option 12.
DomainName string // DHCP option 15.
BroadcastAddress netip.Addr // DHCP option 28.
NTPServers []net.IP // DHCP option 42.
VLANID string // DHCP option 43.116.
LeaseTime uint32 // DHCP option 51.
Arch string // DHCP option 93.
DomainSearch []string // DHCP option 119.
Disabled bool // If true, no DHCP response should be sent.
}
DHCP holds the DHCP headers and options to be set in a DHCP handler response. This is the API between a DHCP handler and a backend.
func (*DHCP) EncodeToAttributes ¶
EncodeToAttributes returns a slice of opentelemetry attributes that can be used to set span.SetAttributes.
type Metadata ¶
type Metadata struct {
// IfName is the name of the interface that the DHCP message was received on.
IfName string
// IfIndex is the index of the interface that the DHCP message was received on.
IfIndex int
}
Metadata holds metadata about the DHCP packet that was received.
type Netboot ¶
type Netboot struct {
AllowNetboot bool // If true, the client will be provided netboot options in the DHCP offer/ack.
IPXEScriptURL *url.URL // Overrides a default value that is passed into DHCP on startup.
IPXEScript string // Overrides a default value that is passed into DHCP on startup.
Console string
Facility string
OSIE OSIE
}
Netboot holds info used in netbooting a client.
func (*Netboot) EncodeToAttributes ¶
EncodeToAttributes returns a slice of opentelemetry attributes that can be used to set span.SetAttributes.
type OSIE ¶ added in v0.13.0
type OSIE struct {
// BaseURL is the URL where the OSIE parts are located.
BaseURL *url.URL
// Kernel is the name of the kernel file.
Kernel string
// Initrd is the name of the initrd file.
Initrd string
}
OSIE or OS Installation Environment is the data about where the OSIE parts are located.