Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Info ¶
type Info struct {
Devices []*Device `json:"devices"`
// contains filtered or unexported fields
}
Info describes all network interface controllers (NICs) in the host system.
func New ¶
New returns a pointer to an Info struct that contains information about the network interface controllers (NICs) on the host system
func (*Info) JSONString ¶
JSONString returns a string with the net information formatted as JSON under a top-level "net:" key
func (*Info) String ¶
String returns a short string with information about the networking on the host system.
func (*Info) YAMLString ¶
YAMLString returns a string with the net information formatted as YAML under a top-level "net:" key
Click to show internal directories.
Click to hide internal directories.