helios

package
v0.0.0-...-bfd0bb2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeliosDP

type HeliosDP interface {
	// Overlay APIs
	CreateVXLAN(name string, vxlanId int, tunSrc string, tunDst string) (string, error)
	DeleteVXLAN(name string) error
	CreateIPSec(name string, csum bool, localIP string, remoteIP string, psk string, externalIDs map[string]interface{}) (string, error)
	DeleteIPSec(name string) error

	// Route APIs
	// AddRoutes should add routes to the provided podCIDR.
	// It should override the routes if they already exist, without error.
	AddRoutes(podCIDR *net.IPNet, peerNodeName string, peerNodeIP, peerGwIP net.IP) error

	// DeleteRoutes should delete routes to the provided podCIDR.
	// It should do nothing if the routes don't exist, without error.
	DeleteRoutes(podCIDR *net.IPNet) error

	// MigrateRoutesToGw should move routes from device linkname to local gateway.
	MigrateRoutesToGw(linkName string) error

	// UnMigrateRoutesFromGw should move routes back from local gateway to original device linkName
	// if linkName is nil, it should remove the routes.
	UnMigrateRoutesFromGw(route *net.IPNet, linkName string) error
}

HeliosDP helps list Loggers.

func NewHeliosDP

func NewHeliosDP(hlsType string, hlsGroupMacAddr string,
	hlsGroupPort int) HeliosDP

NewLoggerLister returns a new LoggerLister.

Jump to

Keyboard shortcuts

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