watch

package
v1.5.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package watch provides netlink watchers via multicast groups.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trigger

type Trigger interface {
	QueueReconcile()
}

Trigger is used by watcher to trigger reconcile loops.

type Watcher

type Watcher interface {
	Done()
}

Watcher interface allows to stop watching.

func NewEthtool

func NewEthtool(trigger Trigger) (Watcher, error)

NewEthtool starts ethtool watch.

func NewRtNetlink(trigger Trigger, groups uint32) (Watcher, error)

NewRtNetlink starts rtnetlink watch over specified groups.

Jump to

Keyboard shortcuts

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