topology

package
v0.0.0-...-7b34d14 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const VIPListenPort = uint32(80)

Variables

This section is empty.

Functions

func BuildCircuitBreakerMap

func BuildCircuitBreakerMap(dataplane *mesh_core.DataplaneResource, destinations core_xds.DestinationMap, circuitBreakers []*mesh_core.CircuitBreakerResource) core_xds.CircuitBreakerMap

BuildCircuitBreakerMap creates a map with circuit-breaking configuration per reachable service.

func BuildDestinationMap

func BuildDestinationMap(dataplane *mesh_core.DataplaneResource, routes core_xds.RouteMap) core_xds.DestinationMap

BuildDestinationMap creates a map of selectors to match other dataplanes reachable from a given one via given routes.

func BuildEndpointMap

func BuildEndpointMap(destinations core_xds.DestinationMap, dataplanes []*mesh_core.DataplaneResource, zone, mesh string) core_xds.EndpointMap

BuildEndpointMap creates a map of all endpoints that match given selectors.

func BuildHealthCheckMap

func BuildHealthCheckMap(dataplane *mesh_core.DataplaneResource, destinations core_xds.DestinationMap, healthChecks []*mesh_core.HealthCheckResource) core_xds.HealthCheckMap

BuildHealthCheckMap creates a map with health-checking configuration per reachable service.

func BuildRouteMap

func BuildRouteMap(dataplane *mesh_core.DataplaneResource, routes []*mesh_core.TrafficRouteResource) core_xds.RouteMap

BuildRouteMap picks a single the most specific route for each outbound interface of a given Dataplane.

func GetCircuitBreakers

GetCircuitBreakers resolves all CircuitBreakers applicable to a given Dataplane.

func GetDataplanes

GetDataplanes returs list of Dataplane in provided Mesh and Ingresses (which are cluster-scoped, not mesh-scoped)

func GetHealthChecks

GetHealthChecks resolves all HealthChecks applicable to a given Dataplane.

func GetOutboundTargets

func GetOutboundTargets(destinations core_xds.DestinationMap, dataplanes *mesh_core.DataplaneResourceList, localClusterName, mesh string) (core_xds.EndpointMap, error)

GetOutboundTargets resolves all endpoints reachable from a given dataplane.

func GetRoutes

GetRoutes picks a single the most specific route for each outbound interface of a given Dataplane.

func PatchDataplaneWithVIPOutbounds

func PatchDataplaneWithVIPOutbounds(dataplane *mesh_core.DataplaneResource,
	dataplanes *mesh_core.DataplaneResourceList, resolver dns.DNSResolver) (errs error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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