linkerd2_proxy_api/gen/
io.linkerd.proxy.tls_route.rs

1/// Describes how to match an `SNI` ClientHello extension.
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct SniMatch {
5    #[prost(oneof = "sni_match::Match", tags = "1, 2")]
6    pub r#match: ::core::option::Option<sni_match::Match>,
7}
8/// Nested message and enum types in `SniMatch`.
9pub mod sni_match {
10    /// A match like `*.example.com` is encoded as \[com, example\].
11    #[allow(clippy::derive_partial_eq_without_eq)]
12    #[derive(Clone, PartialEq, ::prost::Message)]
13    pub struct Suffix {
14        #[prost(string, repeated, tag = "1")]
15        pub reverse_labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
16    }
17    #[allow(clippy::derive_partial_eq_without_eq)]
18    #[derive(Clone, PartialEq, ::prost::Oneof)]
19    pub enum Match {
20        /// Match an exact SNI, e.g. www.example.com.
21        #[prost(string, tag = "1")]
22        Exact(::prost::alloc::string::String),
23        /// Match a SNI as a wildcard suffix, e.g. *.example.com.
24        #[prost(message, tag = "2")]
25        Suffix(Suffix),
26    }
27}