common

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedRetryOnPolicies = map[string]bool{

	"5xx":                    true,
	"gateway-error":          true,
	"connect-failure":        true,
	"retriable-4xx":          true,
	"refused-stream":         true,
	"retriable-status-codes": true,

	"cancelled":          true,
	"deadline-exceeded":  true,
	"internal":           true,
	"resource-exhausted": true,
	"unavailable":        true,
}

SupportedRetryOnPolicies contains envoy supported retry on header values

Functions

func ConvertHTTPMatchRequestsPointers

func ConvertHTTPMatchRequestsPointers(mrs []*v1alpha3.HTTPMatchRequest) []v1alpha3.HTTPMatchRequest

func ParseDestination

func ParseDestination(d string) (v1alpha3.Destination, error)

func ParseDestinations

func ParseDestinations(ds []string) ([]v1alpha3.Destination, error)

func ParseHTTPRequestMatch

func ParseHTTPRequestMatch(matches []string) (*v1alpha3.HTTPMatchRequest, error)

func ParseHTTPRequestMatches

func ParseHTTPRequestMatches(matchGroups []string) ([]*v1alpha3.HTTPMatchRequest, error)

func ParseWeights

func ParseWeights(weights string) ([]int, error)

Types

type Destination

type Destination v1alpha3.Destination

func (Destination) String

func (d Destination) String() string

type HTTPMatchRequest

type HTTPMatchRequest v1alpha3.HTTPMatchRequest

func (HTTPMatchRequest) String

func (r HTTPMatchRequest) String() string

type HTTPMatchRequests

type HTTPMatchRequests []v1alpha3.HTTPMatchRequest

func (HTTPMatchRequests) String

func (r HTTPMatchRequests) String() string

type HTTPRedirect

type HTTPRedirect v1alpha3.HTTPRedirect

func (HTTPRedirect) String

func (r HTTPRedirect) String() string

type HTTPRetry

type HTTPRetry v1alpha3.HTTPRetry

func (HTTPRetry) String

func (r HTTPRetry) String() string

type HTTPRewrite

type HTTPRewrite v1alpha3.HTTPRewrite

func (HTTPRewrite) String

func (r HTTPRewrite) String() string

type HTTPRoute

type HTTPRoute v1alpha3.HTTPRoute

type HTTPRouteDestination

type HTTPRouteDestination v1alpha3.HTTPRouteDestination

func (HTTPRouteDestination) String

func (d HTTPRouteDestination) String() string

type HTTPRouteDestinations

type HTTPRouteDestinations []HTTPRouteDestination

func (HTTPRouteDestinations) String

func (ds HTTPRouteDestinations) String() string

type HTTPRoutes

type HTTPRoutes []v1alpha3.HTTPRoute

func (HTTPRoutes) GetMatchedRoute

func (r HTTPRoutes) GetMatchedRoute(matches []*v1alpha3.HTTPMatchRequest) *v1alpha3.HTTPRoute

type StringMatch

type StringMatch v1alpha1.StringMatch

func (StringMatch) String

func (r StringMatch) String() string

type Timeout

type Timeout string

func (Timeout) String

func (t Timeout) String() string

Jump to

Keyboard shortcuts

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