lacp

package
v0.0.0-...-8b14c8e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nics

type Nics struct {
	PFs map[int]*pf.PF
	// contains filtered or unexported fields
}

Nics stores the PFs that are inspected.

func New

func New(nics []string, queue <-chan int, pollingInterval int, nl interfaces.Netlink) Nics

New returns an Nics structure with interfaces that are found in the node.

func (*Nics) Indexes

func (i *Nics) Indexes() []int

Indexes returns a list of indexes.

func (*Nics) Inspect

func (i *Nics) Inspect(ctx context.Context, wg *sync.WaitGroup)

Inspect inspects interfaces in order to proceed with monitoring.

func (*Nics) Monitor

func (i *Nics) Monitor(ctx context.Context, wg *sync.WaitGroup)

Monitor monitors the LACP protocol on the interfaces.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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