Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPlugin = *NewPlugin()
DefaultPlugin is a default instance of IfPlugin.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { // GetInterfaceIndex gives read-only access to map with metadata of all configured // linux interfaces. GetInterfaceIndex() ifaceidx.LinuxIfMetadataIndex // SetNotifyService allows to pass function for updating interface notifications. SetNotifyService(notify func(notification *linux.Notification)) }
API defines methods exposed by Linux-IfPlugin.
type Deps ¶
type Deps struct { infra.PluginDeps ServiceLabel servicelabel.ReaderAPI KVScheduler kvs.KVScheduler NsPlugin nsplugin.API AddrAlloc netalloc.AddressAllocator VppIfPlugin descriptor.VPPIfPluginAPI /* mandatory if TAP_TO_VPP interfaces are used */ }
Deps lists dependencies of the interface plugin.
type IfPlugin ¶
type IfPlugin struct { Deps PushNotification func(notification *linux.Notification) // contains filtered or unexported fields }
IfPlugin configures Linux VETH and TAP interfaces using Netlink API.
func (*IfPlugin) GetInterfaceIndex ¶
func (p *IfPlugin) GetInterfaceIndex() ifaceidx.LinuxIfMetadataIndex
GetInterfaceIndex gives read-only access to map with metadata of all configured linux interfaces.
func (*IfPlugin) Init ¶
Init registers interface-related descriptors and starts watching of the default network namespace for interface changes.
func (*IfPlugin) SetNotifyService ¶ added in v3.3.0
func (p *IfPlugin) SetNotifyService(notify func(notification *linux.Notification))
Directories ¶
Path | Synopsis |
---|---|
Package ifaceidx implements name-to-index mapping for Linux interfaces.
|
Package ifaceidx implements name-to-index mapping for Linux interfaces. |
Package linuxcalls contains wrappers over Netlink APIs related to Linux VETH interfaces or Linux interfaces in general.
|
Package linuxcalls contains wrappers over Netlink APIs related to Linux VETH interfaces or Linux interfaces in general. |
Click to show internal directories.
Click to hide internal directories.