Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestXMLData ¶
type RequestXMLData struct {
XMLName xml.Name `xml:"REQUEST"`
IP string
Device struct {
Info struct {
Name string `xml:"NAME"`
Model string `xml:"MODEL"`
Location string `xml:"LOCATION"`
Ips []string `xml:"IPS>IP"`
} `xml:"INFO"`
Ports []struct {
Mac string `xml:"MAC"`
IfName string `xml:"IFNAME"`
Connections struct {
Cdp string `xml:"CDP"`
Connection []struct {
SysName string `xml:"SYSNAME"`
Macs []string `xml:"MAC"`
} `xml:"CONNECTION"`
} `xml:"CONNECTIONS"`
Vlans []struct {
Number string `xml:"NUMBER"`
Name string `xml:"NAME"`
Tagged string `xml:"TAGGED"`
} `xml:"VLANS>VLAN"`
} `xml:"PORTS>PORT"`
} `xml:"CONTENT>DEVICE"`
}
func DownloadXmlFiles ¶
func DownloadXmlFiles(url string, regex string) ([]RequestXMLData, error)
Click to show internal directories.
Click to hide internal directories.