egress

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalIPDetector

func NewLocalIPDetector() *localIPDetector

Types

type EgressController

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

func NewEgressController

func NewEgressController(
	ofClient openflow.Client,
	egressInformer crdinformers.EgressInformer,
	antreaClientGetter agent.AntreaClientProvider,
	ifaceStore interfacestore.InterfaceStore,
	routeClient route.Interface,
	nodeName string,
) *EgressController

func (*EgressController) Run

func (c *EgressController) Run(stopCh <-chan struct{})

Run will create defaultWorkers workers (go routines) which will process the Egress events from the workqueue.

type LocalIPDetector

type LocalIPDetector interface {
	IsLocalIP(ip string) bool

	// Run starts the detector.
	Run(stopCh <-chan struct{})

	// AddEventHandler registers an eventHandler of IP address update. It's not thread-safe and should be called before
	// starting the detector.
	AddEventHandler(handler eventHandler)

	// HasSynced returns true if the cache has been initialized with the full lists of IP addresses.
	HasSynced() bool
}

Jump to

Keyboard shortcuts

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