Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDoesNotExist = errors.New("does not exist") ErrNameDoesNotMatch = errors.New("name does not match") )
Functions ¶
This section is empty.
Types ¶
type Link ¶
type Link struct {
// contains filtered or unexported fields
}
Link represents a network interface.
func LinkByName ¶
LinkByName retrieves a network interface by its name.
func (*Link) AssignAddr ¶
AssignAddr assigns an IP address and netmask to the network interface.
Click to show internal directories.
Click to hide internal directories.