Documentation ¶
Overview ¶
Package network regroups collecting information about the network interfaces
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network struct { // IpAddress is the ipv4 address for the host IpAddress string // IpAddressv6 is the ipv6 address for the host IpAddressv6 string // MacAddress is the macaddress for the host MacAddress string }
Network holds network metadata about the host
func Get ¶
Get returns a Network struct already initialized, a list of warnings and an error. The method will try to collect as much metadata as possible, an error is returned if nothing could be collected. The list of warnings contains errors if some metadata could not be collected.
Click to show internal directories.
Click to hide internal directories.