interfacemonitor

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 2

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL