1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ClusterAction {
/// Indicates the upstream cluster to which the request should be routed
/// to.
#[prost(string, tag = "1")]
pub cluster: ::prost::alloc::string::String,
}
impl ::prost::Name for ClusterAction {
const NAME: &'static str = "ClusterAction";
const PACKAGE: &'static str = "envoy.extensions.router.cluster_specifiers.matcher.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.router.cluster_specifiers.matcher.v3.ClusterAction".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.router.cluster_specifiers.matcher.v3.ClusterAction"
.into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MatcherClusterSpecifier {
/// The matcher for cluster selection after the route has been selected. This is used when the
/// route has multiple clusters (like multiple clusters for different users) and the matcher
/// is used to select the cluster to use for the request.
///
/// The match tree to use for grouping incoming requests into buckets.
///
/// Example:
///
///
/// .. validated-code-block:: yaml
/// : type-name: xds.type.matcher.v3.Matcher
///
///
/// matcher_list:
/// matchers:
/// - predicate:
/// single_predicate:
/// input:
/// typed_config:
/// '@type': type.googleapis.com/envoy.type.matcher.v3.HttpRequestHeaderMatchInput
/// header_name: env
/// value_match:
/// exact: staging
/// on_match:
/// action:
/// typed_config:
/// '@type': type.googleapis.com/envoy.extensions.router.cluster_specifiers.matcher.v3.ClusterAction
/// cluster: "staging-cluster"
///
/// ```text
/// - predicate:
/// single_predicate:
/// input:
/// typed_config:
/// '@type': type.googleapis.com/envoy.type.matcher.v3.HttpRequestHeaderMatchInput
/// header_name: env
/// value_match:
/// exact: prod
/// on_match:
/// action:
/// typed_config:
/// '@type': type.googleapis.com/envoy.extensions.router.cluster_specifiers.matcher.v3.ClusterAction
/// cluster: "prod-cluster"
/// ```
///
/// # Catch-all with a default cluster.
///
/// on_no_match:
/// action:
/// typed_config:
/// '@type': type.googleapis.com/envoy.extensions.router.cluster_specifiers.matcher.v3.ClusterAction
/// cluster: "default-cluster"
#[prost(message, optional, tag = "1")]
pub cluster_matcher: ::core::option::Option<
super::super::super::super::super::super::xds::r#type::matcher::v3::Matcher,
>,
}
impl ::prost::Name for MatcherClusterSpecifier {
const NAME: &'static str = "MatcherClusterSpecifier";
const PACKAGE: &'static str = "envoy.extensions.router.cluster_specifiers.matcher.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.router.cluster_specifiers.matcher.v3.MatcherClusterSpecifier"
.into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.router.cluster_specifiers.matcher.v3.MatcherClusterSpecifier"
.into()
}
}