xml_loader

package module
v0.0.0-...-3a22eae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL