Versions in this module Expand all Collapse all v1 v1.8.1 Oct 5, 2022 Changes in this version + func DestinationClusterName(d *Destination, identifyingTags map[string]string) (string, error) + func FilterProtocols(routes []*core_mesh.MeshGatewayRouteResource, ...) []*core_mesh.MeshGatewayRouteResource + func HasExternalServiceEndpoint(mesh *core_mesh.MeshResource, endpoints core_xds.EndpointMap, d Destination) bool + func InferForwardingProtocol(destinations []Destination) core_mesh.Protocol + func InferServiceProtocol(endpoints []core_xds.Endpoint, routeProtocol core_mesh.Protocol) core_mesh.Protocol + func VirtualHostRoute(route *RouteBuilder) envoy_routes.VirtualHostBuilderOpt + type Action struct + Forward []Destination + Redirect *Redirection + Respond struct{} + type Destination struct + Destination envoy.Tags + Name string + Policies map[model.ResourceType]model.Resource + RouteProtocol core_mesh.Protocol + Weight uint32 + type Entry struct + Action Action + Match Match + Mirror *Mirror + RequestHeaders *Headers + Rewrite *Rewrite + Route string + type Headers struct + Append []KeyValue + Delete []string + Replace []KeyValue + type KeyValue struct + Key string + Value string + func Pair(key string, value string) KeyValue + type Match struct + ExactHeader []KeyValue + ExactPath string + ExactQuery []KeyValue + Method string + PrefixPath string + RegexHeader []KeyValue + RegexPath string + RegexQuery []KeyValue + type Mirror struct + Forward Destination + Percentage float64 + type Redirection struct + Host string + Path string + Port uint32 + Scheme string + Status uint32 + StripQuery bool + type Rewrite struct + ReplaceFullPath *string + ReplacePrefixMatch *string + type RouteBuilder struct + func (r *RouteBuilder) Build() (envoy.NamedResource, error) + func (r *RouteBuilder) Configure(opts ...RouteConfigurer) *RouteBuilder + type RouteConfigureFunc func(*envoy_config_route.Route) error + func (f RouteConfigureFunc) Configure(r *envoy_config_route.Route) error + type RouteConfigurer interface + Configure func(*envoy_config_route.Route) error + func RouteActionDirectResponse(status uint32, respStr string) RouteConfigurer + func RouteActionForward(mesh *core_mesh.MeshResource, endpoints core_xds.EndpointMap, ...) RouteConfigurer + func RouteActionGrpcRetryOn(retryOn []mesh_proto.Retry_Conf_Grpc_RetryOn) RouteConfigurer + func RouteActionHttpRetryOn(retryOn []mesh_proto.HttpRetryOn) RouteConfigurer + func RouteActionRedirect(redirect *Redirection) RouteConfigurer + func RouteActionRequestTimeout(timeout time.Duration) RouteConfigurer + func RouteActionRetryBackoff(interval time.Duration, max time.Duration) RouteConfigurer + func RouteActionRetryCount(numRetries uint32) RouteConfigurer + func RouteActionRetryDefault(protocol core_mesh.Protocol) RouteConfigurer + func RouteActionRetryMethods(httpMethod ...string) RouteConfigurer + func RouteActionRetryOnConditions(conditionNames ...string) RouteConfigurer + func RouteActionRetryOnStatus(httpStatus ...uint32) RouteConfigurer + func RouteActionRetryTimeout(perTryTimeout time.Duration) RouteConfigurer + func RouteAppendRequestHeader(name string, value string) RouteConfigurer + func RouteDeleteRequestHeader(name string) RouteConfigurer + func RouteMatchExactHeader(name string, value string) RouteConfigurer + func RouteMatchExactPath(path string) RouteConfigurer + func RouteMatchExactQuery(name string, value string) RouteConfigurer + func RouteMatchPrefixPath(prefix string) RouteConfigurer + func RouteMatchRegexHeader(name string, regex string) RouteConfigurer + func RouteMatchRegexPath(regex string) RouteConfigurer + func RouteMatchRegexQuery(name string, regex string) RouteConfigurer + func RouteMirror(percent float64, destination Destination) RouteConfigurer + func RoutePerFilterConfig(filterName string, filterConfig *any.Any) RouteConfigurer + func RouteReplaceHostHeader(host string) RouteConfigurer + func RouteReplaceRequestHeader(name string, value string) RouteConfigurer + func RouteRewrite(rewrite *Rewrite) RouteConfigurer + type RouteMustConfigureFunc func(*envoy_config_route.Route) + func (f RouteMustConfigureFunc) Configure(r *envoy_config_route.Route) error + type Sorter []Entry + func (s Sorter) Len() int + func (s Sorter) Less(i, j int) bool + func (s Sorter) Swap(i, j int) + type Table struct + Entries []Entry v1.5.0-rc2 Feb 18, 2022