nic

package module
v0.0.0-...-203d0a3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

go-nic-info

Gets net.Interface info(e.g, []net.Addr, vnic or not, ...)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkInterfaceToNicType

type NetworkInterfaceToNicType func(net.Interface) NicType

func InterfaceToNicType

func InterfaceToNicType(vnics map[string]struct{}) NetworkInterfaceToNicType

type NicInfo

type NicInfo struct {
	net.Interface `json:"interface"`
	Addrs         []net.Addr `json:"addresses"`
	NicType       `json:"nic_type"`
}

type NicType

type NicType string
const (
	NicTypeUnknown NicType = "unknown"
	NicTypeVirtual         = "virtual"
)

Directories

Path Synopsis
cmd
out
platform

Jump to

Keyboard shortcuts

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