network

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LinkManager = newLinkManager()
)

Functions

func ParsePrivateIP

func ParsePrivateIP(ipAddr string) (net.IP, error)

Types

type Addr

type Addr struct {
	IPNet *net.IPNet
}

type LinkInfo

type LinkInfo struct {
	Name              string
	Index             int
	Type              string
	Addrs             []*Addr
	VxlanId           int
	VxlanPort         int
	VxlanVtepDevIndex int
	// contains filtered or unexported fields
}

func (*LinkInfo) IpString

func (it *LinkInfo) IpString() string

Jump to

Keyboard shortcuts

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