Documentation
¶
Index ¶
- func IPListOption(s []string) (dhcpv4.OptionValue, error)
- func IPOption(s string) (dhcpv4.OptionValue, error)
- func ParseKnownOption(name string, values []string) (dhcpv4.OptionCode, dhcpv4.OptionValue, error)
- func StringListOption(s []string) (dhcpv4.OptionValue, error)
- func StringOption(s string) (dhcpv4.OptionValue, error)
- func UInt16Option(s string) (dhcpv4.OptionValue, error)
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPListOption ¶
func IPListOption(s []string) (dhcpv4.OptionValue, error)
IPListOption converts the given string slice into a DHCPv4 option value
func IPOption ¶
func IPOption(s string) (dhcpv4.OptionValue, error)
IPOption converts the given string into a DHCPv4 option value
func ParseKnownOption ¶
func ParseKnownOption(name string, values []string) (dhcpv4.OptionCode, dhcpv4.OptionValue, error)
ParseKnownOption parses the given name and string values and returns their DHCP option representation if known
func StringListOption ¶
func StringListOption(s []string) (dhcpv4.OptionValue, error)
StringListOption converts the given string slice into a DHCPv4 option value
func StringOption ¶
func StringOption(s string) (dhcpv4.OptionValue, error)
StringOption converts the given string into a DHCPv4 option value
func UInt16Option ¶
func UInt16Option(s string) (dhcpv4.OptionValue, error)
UInt16Option converts the given string into a DHCPv4 option value
Types ¶
type Plugin ¶
type Plugin struct {
Next plugin.Handler
Options map[dhcpv4.OptionCode]dhcpv4.OptionValue
}
Plugin allows to configure and set arbitrary DHCP options. It implements the plugin.Handler interface
Click to show internal directories.
Click to hide internal directories.