Documentation ¶
Overview ¶
Package link provides the Cilium specific abstraction and useful helpers to manage network interfaces
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByName ¶
DeleteByName deletes the interface with the name ifName.
func GetIfIndex ¶
Types ¶
type LinkCache ¶
type LinkCache struct {
// contains filtered or unexported fields
}
func NewLinkCache ¶
func NewLinkCache() *LinkCache
NewLinkCache begins monitoring local interfaces for changes in order to track local link information.
func (*LinkCache) GetIfNameCached ¶
GetIfNameCached returns the name of an interface (if it exists) by looking it up in a regularly updated cache. The return result is the same as a map lookup, ie nil, false if there is no entry cached for this ifindex.
Click to show internal directories.
Click to hide internal directories.