ipaddr

package
v0.0.0-...-2e893ec Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultMask net.IPMask = net.CIDRMask(32, 32)
)

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// AddAddr binds an IP addr to one network interface.
	AddAddr(ip net.IP) error

	// DeleteAddr removes an IP addr binding.
	DeleteAddr(ip net.IP) error

	// GetAddrs returns IP address map
	GetAddrs() (map[string]bool, error)
}

An injectable interface for running ip addr commands.

func New

func New(device string) (Interface, error)

Jump to

Keyboard shortcuts

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