route

package
v1.0.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 23 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 BuildInboundMeshRouteConfiguration added in v0.11.0

func BuildInboundMeshRouteConfiguration(portSpecificRouteConfigs map[int][]*trafficpolicy.InboundTrafficPolicy, proxy *envoy.Proxy, cfg configurator.Configurator) []*xds_route.RouteConfiguration

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

func BuildIngressConfiguration

func BuildIngressConfiguration(ingress []*trafficpolicy.InboundTrafficPolicy) *xds_route.RouteConfiguration

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

func BuildOutboundMeshRouteConfiguration added in v0.11.0

func BuildOutboundMeshRouteConfiguration(portSpecificRouteConfigs map[int][]*trafficpolicy.OutboundTrafficPolicy) []*xds_route.RouteConfiguration

BuildOutboundMeshRouteConfiguration constructs the Envoy construct (*xds_route.RouteConfiguration) for the given outbound mesh route configs

func GetEgressRouteConfigNameForPort

func GetEgressRouteConfigNameForPort(port int) string

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

func GetInboundMeshRouteConfigNameForPort added in v0.11.0

func GetInboundMeshRouteConfigNameForPort(port int) string

GetInboundMeshRouteConfigNameForPort returns the inbound mesh route configuration object's name given the port it is targeted to

func GetOutboundMeshRouteConfigNameForPort added in v0.11.0

func GetOutboundMeshRouteConfigNameForPort(port int) string

GetOutboundMeshRouteConfigNameForPort returns the outbound mesh 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

This section is empty.

Jump to

Keyboard shortcuts

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