Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUnsupportedProtocol = errors.New("unsupported protocol")
ErrUnsupportedProtocol returned when requested to scan an unsupported protocol
Functions ¶
func ReadKeaConfig ¶
ReadKeaConfig reads the config configuration file and returns its data
func ScanNetworks ¶
ScanNetworks scan specific or all networks and try to find chassis, blades and servers
func ScanNetworksWorker ¶
func ScanNetworksWorker()
ScanNetworksWorker scan specific or all networks and try to find chassis, blades and servers
Types ¶
type Dhcp4 ¶
type Dhcp4 struct {
Subnet4 []*Subnet4 `json:"subnet4"`
}
Dhcp4 contains the dhcp information for ipv4 networks
type Kea ¶
type Kea struct {
Dhcp4 *Dhcp4 `json:"Dhcp4"`
}
Kea is the main entry for parsing the kea config file
type OptionData ¶
OptionData contains the options send to the clients during the dhcp request
type Result ¶
type Result int
Result is the result of the probe; the appropriate "IsXXXX()" function should be used to evaluate it.
type Subnet4 ¶
type Subnet4 struct { OptionData []*OptionData `json:"option-data"` Subnet string `json:"subnet"` }
Subnet4 contains all the subnets managed by Kea
type ToScan ¶
ToScan payload message to scan a network
func ListSubnets ¶
ListSubnets all or a list of given subnets
func LoadSubnets ¶
func LoadSubnetsFromKea ¶
LoadSubnetsFromKea from kea.cfg