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 }
API defines methods exposed by Linux-IfPlugin.
type Config ¶
Config holds the ifplugin configuration.
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 // contains filtered or unexported fields }
IfPlugin configures Linux VETH and TAP interfaces using Netlink API.
func NewPlugin ¶
NewPlugin creates a new Plugin with the provides Options
func (*IfPlugin) Close ¶
Close stops watching of the default network namespace.
func (*IfPlugin) GetInterfaceIndex ¶
func (p *IfPlugin) GetInterfaceIndex() ifaceidx.LinuxIfMetadataIndex
GetInterfaceIndex gives read-only access to map with metadata of all configured linux interfaces.
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.