trafficpolicy

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRoute added in v0.4.0

type HTTPRoute struct {
	PathRegex string            `json:"path_regex:omitempty"`
	Methods   []string          `json:"methods:omitempty"`
	Headers   map[string]string `json:"headers:omitempty"`
}

HTTPRoute is a struct to represent an HTTP route comprised of a path regex, methods, and headers

type RouteWeightedClusters

type RouteWeightedClusters struct {
	HTTPRoute        HTTPRoute `json:"http_route:omitempty"`
	WeightedClusters set.Set   `json:"weighted_clusters:omitempty"`
	Hostnames        set.Set   `json:"hostnames:omitempty"`
}

RouteWeightedClusters is a struct of an HTTPRoute, associated weighted clusters and the domains

type TrafficSpecMatchName

type TrafficSpecMatchName string

TrafficSpecMatchName is the name of a match in SMI TrafficSpec

type TrafficSpecName

type TrafficSpecName string

TrafficSpecName is the namespaced name of the SMI TrafficSpec

type TrafficTarget

type TrafficTarget struct {
	Name        string              `json:"name:omitempty"`
	Destination service.MeshService `json:"destination:omitempty"`
	Source      service.MeshService `json:"source:omitempty"`
	HTTPRoutes  []HTTPRoute         `json:"http_route:omitempty"`
}

TrafficTarget is a struct to represent a traffic policy between a source and destination along with its routes

Jump to

Keyboard shortcuts

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