network

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARP

type ARP interface {
	GratuitousArp(req GratuitousArpRequest) error
}

func GetArp

func GetArp() ARP

type GratuitousArpRequest

type GratuitousArpRequest struct {
	IP        net.IP
	Interface *net.Interface
}

type Interface

type Interface interface {
	EnsureIP(ip string) error
	RemoveIP(ip string) error
}

type NetInterface

type NetInterface struct {
	// contains filtered or unexported fields
}

func NewNetworkInterfaceFromName

func NewNetworkInterfaceFromName(name string) (NetInterface, error)

func (NetInterface) EnsureIP

func (i NetInterface) EnsureIP(ip string) error

func (NetInterface) RemoveIP

func (i NetInterface) RemoveIP(ip string) error

Directories

Path Synopsis
Package networkmock is a generated GoMock package.
Package networkmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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