v3

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TagsHeaderName = "x-kuma-tags"

Variables

This section is empty.

Functions

func NewRateLimitConfiguration added in v1.8.1

func NewRateLimitConfiguration(rlHttp *v1alpha1.RateLimit_Conf_Http) (*any.Any, error)

Types

type CommonRouteConfigurationConfigurer

type CommonRouteConfigurationConfigurer struct {
	Name string
}

func (CommonRouteConfigurationConfigurer) Configure

type RedirectConfigurer

type RedirectConfigurer struct {
	MatchPath    string
	NewPath      string
	Port         uint32
	AllowGetOnly bool
}

func (RedirectConfigurer) Configure

func (c RedirectConfigurer) Configure(virtualHost *envoy_route.VirtualHost) error

type ResetTagsHeaderConfigurer

type ResetTagsHeaderConfigurer struct {
}

func (*ResetTagsHeaderConfigurer) Configure

type RouteConfigurationConfigureFunc added in v1.8.1

type RouteConfigurationConfigureFunc func(rc *envoy_route.RouteConfiguration) error

RouteConfigurationConfigureFunc adapts a configuration function to the RouteConfigurationConfigurer interface.

func (RouteConfigurationConfigureFunc) Configure added in v1.8.1

type RouteConfigurationConfigurer

type RouteConfigurationConfigurer interface {
	// Configure configures a single aspect on a given Envoy RouteConfiguration.
	Configure(routeConfiguration *envoy_route.RouteConfiguration) error
}

RouteConfigurationConfigurer is responsible for configuring a single aspect of the entire Envoy RouteConfiguration, such as VirtualHost, HTTP headers to add or remove, etc.

type RouteConfigurationMustConfigureFunc added in v1.8.1

type RouteConfigurationMustConfigureFunc func(rc *envoy_route.RouteConfiguration)

RouteConfigurationMustConfigureFunc adapts a configuration function that never fails to the RouteConfigurationConfigurer interface.

func (RouteConfigurationMustConfigureFunc) Configure added in v1.8.1

type RouteConfigurer

type RouteConfigurer struct {
	MatchPath    string
	NewPath      string
	Cluster      string
	AllowGetOnly bool
}

func (RouteConfigurer) Configure

func (c RouteConfigurer) Configure(virtualHost *envoy_route.VirtualHost) error

type RoutesConfigurer

type RoutesConfigurer struct {
	Routes envoy_common.Routes
}

func (RoutesConfigurer) Configure

func (c RoutesConfigurer) Configure(virtualHost *envoy_route.VirtualHost) error

type TagsHeaderConfigurer

type TagsHeaderConfigurer struct {
	Tags mesh_proto.MultiValueTagSet
}

func (*TagsHeaderConfigurer) Configure

type VirtualHostConfigureFunc added in v1.8.1

type VirtualHostConfigureFunc func(vh *envoy_route.VirtualHost) error

VirtualHostConfigureFunc adapts a configuration function to the VirtualHostConfigurer interface.

func (VirtualHostConfigureFunc) Configure added in v1.8.1

type VirtualHostConfigurer

type VirtualHostConfigurer interface {
	// Configure configures a single aspect on a given Envoy VirtualHost.
	Configure(virtualHost *envoy_route.VirtualHost) error
}

VirtualHostConfigurer is responsible for configuring a single aspect of the entire Envoy VirtualHost, such as Route, CORS, etc.

type VirtualHostMustConfigureFunc added in v1.8.1

type VirtualHostMustConfigureFunc func(vh *envoy_route.VirtualHost)

VirtualHostMustConfigureFunc adapts a configuration function that never fails to the VirtualHostConfigurer interface.

func (VirtualHostMustConfigureFunc) Configure added in v1.8.1

Jump to

Keyboard shortcuts

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