pluginutils

package
v0.10.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestinationUpstreams

func DestinationUpstreams(in *v1.RouteAction) []core.ResourceRef

func EnvoyEndpoint

func EnvoyEndpoint(address string, port uint32) *envoyendpoint.Endpoint

func EnvoySingleEndpointLoadAssignment

func EnvoySingleEndpointLoadAssignment(out *envoyapi.Cluster, address string, port uint32)

func MarkHeaders

func MarkHeaders(ctx context.Context, in *v1.Route, out *envoyroute.Route, headers HeadersToAddFunc) error

Allows you add extra headers for specific destination. The provided callback will be called for all the destinations on the route. Any headers returned will be added to requests going to that destination

func MarkPerFilterConfig

func MarkPerFilterConfig(ctx context.Context, in *v1.Route, out *envoyroute.Route, filterName string, perFilterConfig PerFilterConfigFunc) error

call this from

Types

type HeadersToAddFunc

type HeadersToAddFunc func(spec *v1.Destination) ([]*envoycore.HeaderValueOption, error)

type PerFilterConfigFunc

type PerFilterConfigFunc func(spec *v1.Destination) (proto.Message, error)

Return Per-Filter config for destinations, we put them on the Route (single dest) or WeightedCluster (multi dest)

Jump to

Keyboard shortcuts

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