Documentation ¶
Overview ¶
Package interfacemonitor contains code implementing NetworkServiceServer and NetworkServiceClient to adverstise a listener when an nsm interface has been created or removed
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(interfaceMonitor networking.InterfaceMonitor, interfaceMonitorSubscriber networking.InterfaceMonitorSubscriber, netUtils networkingUtils) networkservice.NetworkServiceClient
NewClient implements NetworkServiceClient to advertise the interfaceMonitorSubscriber when a NSM interface has been created / removed in the pod A networking.InterfaceMonitor is required to get events on interface creation / deletion on the pod A networkingUtils (e.g. kernel implementation) is needed in order to check if an interface is existing in the pod, and to create the interface to return to the interfaceMonitorSubscriber
func NewServer ¶
func NewServer(interfaceMonitor networking.InterfaceMonitor, interfaceMonitorSubscriber networking.InterfaceMonitorSubscriber, netUtils networkingUtils) networkservice.NetworkServiceServer
NewServer implements NetworkServiceServer to advertise the interfaceMonitorSubscriber when a NSM interface has been created / removed in the pod A networking.InterfaceMonitor is required to get events on interface creation / deletion on the pod A networkingUtils (e.g. kernel implementation) is needed in order to check if an interface is existing in the pod, and to create the interface to return to the interfaceMonitorSubscriber
Types ¶
This section is empty.