Documentation
¶
Index ¶
Constants ¶
View Source
const ( StateUp = "up" StateDown = "down" )
Variables ¶
This section is empty.
Functions ¶
func IsInterfacePresent ¶
Types ¶
type AddrStateCallback ¶
type Config ¶
type Config struct {
// List of interface names that dataplane receives no callbacks from them.
InterfaceExcludes []string
}
type InterfaceMonitor ¶
type InterfaceMonitor struct {
Config
Callback InterfaceStateCallback
AddrCallback AddrStateCallback
// contains filtered or unexported fields
}
func New ¶
func New(config Config) *InterfaceMonitor
func NewWithStubs ¶
func NewWithStubs(config Config, netlinkStub netlinkStub, resyncC <-chan time.Time) *InterfaceMonitor
func (*InterfaceMonitor) MonitorInterfaces ¶
func (m *InterfaceMonitor) MonitorInterfaces()
type InterfaceStateCallback ¶
Click to show internal directories.
Click to hide internal directories.