Documentation ¶
Overview ¶
Package cds implements Envoy's Cluster Discovery Service (CDS).
Index ¶
- func GetDefaultCircuitBreakerThreshold() *xds_cluster.CircuitBreakers_Thresholds
- func GetHTTPProtocolOptions(protocol string) *extensions_upstream_http.HttpProtocolOptions
- func GetTypedHTTPProtocolOptions(httpProtocolOptions *extensions_upstream_http.HttpProtocolOptions) (map[string]*any.Any, error)
- func NewClusterBuilder() *clusterBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultCircuitBreakerThreshold ¶
func GetDefaultCircuitBreakerThreshold() *xds_cluster.CircuitBreakers_Thresholds
GetDefaultCircuitBreakerThreshold returns the XDS Circuit Breaker thresholds at their max value, effectively disabling circuit breaking
func GetHTTPProtocolOptions ¶
func GetHTTPProtocolOptions(protocol string) *extensions_upstream_http.HttpProtocolOptions
GetHTTPProtocolOptions returns the HttpProtocolOptions for the given protocol. If an empty protocol string is specified, it returns options using the downstream protocol by default.
func GetTypedHTTPProtocolOptions ¶
func GetTypedHTTPProtocolOptions(httpProtocolOptions *extensions_upstream_http.HttpProtocolOptions) (map[string]*any.Any, error)
GetTypedHTTPProtocolOptions marshals the provided httpProtocolOptions into the consumable type for the envoy config.
func NewClusterBuilder ¶
func NewClusterBuilder() *clusterBuilder
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.