Documentation ¶
Overview ¶
Package route implements utility routines to build HTTP route configurations for Envoy proxies.
Index ¶
- Constants
- func BuildEgressRouteConfiguration(portSpecificRouteConfigs map[int][]*trafficpolicy.EgressHTTPRouteConfig) []*xds_route.RouteConfiguration
- func BuildInboundMeshRouteConfiguration(portSpecificRouteConfigs map[int][]*trafficpolicy.InboundTrafficPolicy, ...) []*xds_route.RouteConfiguration
- func BuildIngressConfiguration(ingress []*trafficpolicy.InboundTrafficPolicy, trustDomain string) *xds_route.RouteConfiguration
- func BuildOutboundMeshRouteConfiguration(portSpecificRouteConfigs map[int][]*trafficpolicy.OutboundTrafficPolicy) []*xds_route.RouteConfiguration
- func GetEgressRouteConfigNameForPort(port int) string
- func GetInboundMeshRouteConfigNameForPort(port int) string
- func GetOutboundMeshRouteConfigNameForPort(port int) string
- func NewRouteConfigurationStub(routeConfigName string) *xds_route.RouteConfiguration
Constants ¶
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, trustDomain string) []*xds_route.RouteConfiguration
BuildInboundMeshRouteConfiguration constructs the Envoy constructs ([]*xds_route.RouteConfiguration) for implementing inbound and outbound routes
func BuildIngressConfiguration ¶
func BuildIngressConfiguration(ingress []*trafficpolicy.InboundTrafficPolicy, trustDomain string) *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 ¶
GetEgressRouteConfigNameForPort returns the Egress route configuration object's name given the port it is targeted to
func GetInboundMeshRouteConfigNameForPort ¶ added in v0.11.0
GetInboundMeshRouteConfigNameForPort returns the inbound mesh route configuration object's name given the port it is targeted to
func GetOutboundMeshRouteConfigNameForPort ¶ added in v0.11.0
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.