vip

package
v0.0.0-...-4c5efe1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoDefaultInterface = errors.New("no default interface found")

Functions

func ARPSendGratuitous

func ARPSendGratuitous(cidr, iface string) error

func DefaultInterface

func DefaultInterface() (iface string, err error)

Types

type Network

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

func NewNetwork

func NewNetwork(iface string) (n *Network, err error)

func NewNetworkWithLabel

func NewNetworkWithLabel(iface, label string) (n *Network, err error)

func (*Network) AddIP

func (n *Network) AddIP(cidr string) error

func (*Network) DeleteIP

func (n *Network) DeleteIP(cidr string) error

func (*Network) GetIPs

func (n *Network) GetIPs() (cidrs []string)

func (*Network) HasIP

func (n *Network) HasIP(a *netlink.Addr) bool

func (*Network) Interface

func (n *Network) Interface() string

Jump to

Keyboard shortcuts

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