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"`
}
RouteWeightedClusters is a struct of an HTTPRoute and associated weighted clusters
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
Click to show internal directories.
Click to hide internal directories.