Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonRouteConfigurationConfigurer

type CommonRouteConfigurationConfigurer struct {
	Name string
}

func (CommonRouteConfigurationConfigurer) Configure

func (c CommonRouteConfigurationConfigurer) Configure(routeConfiguration *envoy_api.RouteConfiguration) error

type CommonVirtualHostConfigurer

type CommonVirtualHostConfigurer struct {
	Name string
}

func (CommonVirtualHostConfigurer) Configure

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

type DefaultRouteConfigurer

type DefaultRouteConfigurer struct {
	// Subsets to forward traffic to.
	Subsets []envoy_common.ClusterSubset
}

func (DefaultRouteConfigurer) Configure

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

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 RouteConfigurationConfigurer

type RouteConfigurationConfigurer interface {
	// Configure configures a single aspect on a given Envoy RouteConfiguration.
	Configure(routeConfiguration *envoy_api.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 RoutesConfigurer

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

    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 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.