route

package
v0.8.4 Latest Latest
Warning

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

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

Documentation

Overview

Package route implements utility routines to build HTTP route configurations for Envoy proxies.

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 BuildRouteConfiguration added in v0.7.0

func BuildRouteConfiguration(inbound []*trafficpolicy.InboundTrafficPolicy, outbound []*trafficpolicy.OutboundTrafficPolicy, proxy *envoy.Proxy) []*xds_route.RouteConfiguration

BuildRouteConfiguration constructs the Envoy constructs ([]*xds_route.RouteConfiguration) for implementing inbound and outbound routes

func NewRouteConfigurationStub

func NewRouteConfigurationStub(routeConfigName string) *xds_route.RouteConfiguration

NewRouteConfigurationStub creates the route configuration placeholder

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