controlplane

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CircuitBreaker added in v0.1.5

func CircuitBreaker(maxConnections, maxRequests, maxPendingRequests, maxRetries uint32) *cluster.CircuitBreakers

func ConnectionManager

func ConnectionManager(routeName string, vhosts []route.VirtualHost, drainTimeout *time.Duration) *hcm.HttpConnectionManager

ConnectionManager for a given set of virtual hosts

func Listener

func Listener(name, address string, port uint32, connectionManager *hcm.HttpConnectionManager) (*v2.Listener, error)

Listener for given address and connectionManager

func OutlierDetection added in v0.1.5

func OutlierDetection(baseEjectionTimeSeconds, ejectionSweepInterval int64, consecutive5xx, consecutiveGatewayFailure, enforcingConsecutive5xx, enforcingConsecutiveGatewayFailure, maxEjectionPercent uint32) *cluster.OutlierDetection

func RetryPolicy added in v0.1.5

func RetryPolicy(retryOn, retryPredicate string, numRetries uint32, hostSelectionMaxRetryAttempts int64) *route.RetryPolicy

func StrictDNSLRCluster

func StrictDNSLRCluster(name, svcAddress string, port uint32, timeoutms int, circuitBreaker *cluster.CircuitBreakers, outlierDetection *cluster.OutlierDetection) *v2.Cluster

StrictDNSLRCluster creates a strict dns cluster with lb policy as least request.

func StrictDNSLRHttp2Cluster

func StrictDNSLRHttp2Cluster(name, svcAddress string, port uint32, timeoutms int, circuitBreaker *cluster.CircuitBreakers, outlierDetection *cluster.OutlierDetection) *v2.Cluster

StrictDNSLRHttp2Cluster creates an http2 strict dns cluster with lb policy as least request.

func TCPAddress

func TCPAddress(address string, port uint32) core.Address

TCPAddress builds a envoy tcp address

func VHost

func VHost(name string, domains []string, targets []Target, retryPolicy *route.RetryPolicy) route.VirtualHost

Types

type Target

type Target struct {
	Host        string
	Prefix      string
	ClusterName string
}

Target represents a routing target criteria

func (*Target) Route

func (t *Target) Route() route.Route

Route is the route for the current target

Jump to

Keyboard shortcuts

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