Documentation
¶
Overview ¶
Package link provides the Cilium specific abstraction and useful helpers to manage network interfaces
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Module( "link-cache", "Provides a cache of link names to ifindex mappings", cell.Provide(newLinkCache), )
Functions ¶
func DeleteByName ¶
DeleteByName deletes the interface with the name ifName.
Returns nil if the interface does not exist.
func GetIfIndex ¶
Types ¶
type LinkCache ¶
type LinkCache struct {
// contains filtered or unexported fields
}
func NewLinkCache ¶
func NewLinkCache() *LinkCache
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.