xdp

package
v0.0.0-...-21d4800 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App stores ebpf programs and maps together with the desired state

func NewXconnectApp

func NewXconnectApp(input map[string]string) (*App, error)

NewXconnectApp sets up the XDP xconnect application Input expects a map between existing pairs of interface names that will be cross-connected.

func (*App) Launch

func (c *App) Launch(ctx context.Context, updateCh chan map[string]string)

Launch app, watch for changes and perform "warm" reloads. This function blocks forever and context can be used to gracefully stop it. updateCh expects a map between interfaces, similar to input of NewXconnectApp.

Jump to

Keyboard shortcuts

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