Documentation ¶
Index ¶
- func DestinationUpstreams(snap *v1.ApiSnapshot, in *v1.RouteAction) ([]core.ResourceRef, error)
- func EnvoyEndpoint(address string, port uint32) *envoyendpoint.Endpoint
- func EnvoySingleEndpointLoadAssignment(out *envoyapi.Cluster, address string, port uint32)
- func IsDestinationNotFoundErr(err error) bool
- func MarkHeaders(ctx context.Context, snap *v1.ApiSnapshot, in *v1.Route, out *envoyroute.Route, ...) error
- func MarkPerFilterConfig(ctx context.Context, snap *v1.ApiSnapshot, in *v1.Route, out *envoyroute.Route, ...) error
- func SetExtenstionProtocolOptions(out *envoyapi.Cluster, filterName string, protoext proto.Message) error
- func SetRoutePerFilterConfig(out *envoyroute.Route, filterName string, protoext proto.Message) error
- func SetVhostPerFilterConfig(out *envoyroute.VirtualHost, filterName string, protoext proto.Message) error
- func SetWeightedClusterPerFilterConfig(out *envoyroute.WeightedCluster_ClusterWeight, filterName string, ...) error
- type DestinationNotFoundError
- type HeadersToAddFunc
- type PerFilterConfigFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestinationUpstreams ¶
func DestinationUpstreams(snap *v1.ApiSnapshot, in *v1.RouteAction) ([]core.ResourceRef, error)
func EnvoyEndpoint ¶
func EnvoyEndpoint(address string, port uint32) *envoyendpoint.Endpoint
func MarkHeaders ¶
func MarkHeaders(ctx context.Context, snap *v1.ApiSnapshot, 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, snap *v1.ApiSnapshot, in *v1.Route, out *envoyroute.Route, filterName string, perFilterConfig PerFilterConfigFunc) error
call this from
func SetRoutePerFilterConfig ¶
func SetVhostPerFilterConfig ¶
func SetVhostPerFilterConfig(out *envoyroute.VirtualHost, filterName string, protoext proto.Message) error
func SetWeightedClusterPerFilterConfig ¶
func SetWeightedClusterPerFilterConfig(out *envoyroute.WeightedCluster_ClusterWeight, filterName string, protoext proto.Message) error
Types ¶
type DestinationNotFoundError ¶
type DestinationNotFoundError struct { Ref core.ResourceRef ResourceType resources.Resource }
func NewDestinationNotFoundErr ¶
func NewDestinationNotFoundErr(ref core.ResourceRef, resourceType resources.Resource) *DestinationNotFoundError
func NewUpstreamGroupNotFoundErr ¶
func NewUpstreamGroupNotFoundErr(ref core.ResourceRef) *DestinationNotFoundError
func NewUpstreamNotFoundErr ¶
func NewUpstreamNotFoundErr(ref core.ResourceRef) *DestinationNotFoundError
func (*DestinationNotFoundError) Error ¶
func (e *DestinationNotFoundError) Error() string
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)
Click to show internal directories.
Click to hide internal directories.