route

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//InboundRouteConfigName is the name of the route config that the envoy will identify
	InboundRouteConfigName = "RDS_Inbound"

	//OutboundRouteConfigName is the name of the route config that the envoy will identify
	OutboundRouteConfigName = "RDS_Outbound"

	// MethodHeaderKey is the key of the header for HTTP methods
	MethodHeaderKey = ":method"
)

Variables

This section is empty.

Functions

func NewRouteConfigurationStub

func NewRouteConfigurationStub(routeConfigName string) *xds_route.RouteConfiguration

NewRouteConfigurationStub creates the route configuration placeholder

func UpdateRouteConfiguration

func UpdateRouteConfiguration(domainRoutesMap map[string]map[string]trafficpolicy.RouteWeightedClusters, routeConfig *xds_route.RouteConfiguration, direction Direction)

UpdateRouteConfiguration consrtucts the Envoy construct necessary for TrafficTarget implementation

Types

type Direction added in v0.3.0

type Direction int

Direction is a type to signify the direction associated with a route

const (
	// OutboundRoute is the direction for an outbound route
	OutboundRoute Direction = iota

	// InboundRoute is the direction for an inbound route
	InboundRoute
)

Jump to

Keyboard shortcuts

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