route

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 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 inbound mesh RDS route configuration
	InboundRouteConfigName = "rds-inbound"

	// OutboundRouteConfigName is the name of the outbound mesh RDS route configuration
	OutboundRouteConfigName = "rds-outbound"

	// IngressRouteConfigName is the name of the ingress RDS route configuration
	IngressRouteConfigName = "rds-ingress"
)

Variables

This section is empty.

Functions

func BuildEgressRouteConfiguration

func BuildEgressRouteConfiguration(portSpecificRouteConfigs map[int][]*trafficpolicy.EgressHTTPRouteConfig) []*xds_route.RouteConfiguration

BuildEgressRouteConfiguration constructs the Envoy construct (*xds_route.RouteConfiguration) for the given egress route configs

func BuildIngressConfiguration

func BuildIngressConfiguration(ingress []*trafficpolicy.InboundTrafficPolicy, proxy *envoy.Proxy, cfg configurator.Configurator) *xds_route.RouteConfiguration

BuildIngressConfiguration constructs the Envoy constructs ([]*xds_route.RouteConfiguration) for implementing ingress routes

func BuildRouteConfiguration

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

func GetEgressRouteConfigNameForPort

func GetEgressRouteConfigNameForPort(port int) string

GetEgressRouteConfigNameForPort returns the Egress route configuration object's name given the port it is targeted to

func NewRouteConfigurationStub

func NewRouteConfigurationStub(routeConfigName string) *xds_route.RouteConfiguration

NewRouteConfigurationStub creates the route configuration placeholder

Types

type Direction

type Direction int

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

Jump to

Keyboard shortcuts

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