nsmonitor

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package nsmonitor provides chain elements for monitoring of network namespaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(chainCtx context.Context, opts ...Option) networkservice.NetworkServiceClient

NewClient returns new net ns monitoring client

Types

type Monitor

type Monitor interface {
	Watch(ctx context.Context, inodeURL string) <-chan struct{}
}

Monitor provides interface for netns monitor

type Option

type Option func(*clientOptions)

Option is an option pattern for netns monitor client

func WithSupplyMonitor

func WithSupplyMonitor(supplyMonitort func(ctx context.Context) Monitor) Option

WithSupplyMonitor sets netns monitor initialization func

Jump to

Keyboard shortcuts

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