envoy_types/generated/
envoy.extensions.transport_sockets.starttls.v3.rs

1// This file is @generated by prost-build.
2/// Configuration for a downstream StartTls transport socket.
3/// StartTls transport socket wraps two sockets:
4///
5/// * raw_buffer socket which is used at the beginning of the session
6/// * TLS socket used when a protocol negotiates a switch to encrypted traffic.
7#[derive(Clone, PartialEq, ::prost::Message)]
8pub struct StartTlsConfig {
9    /// (optional) Configuration for clear-text socket used at the beginning of the session.
10    #[prost(message, optional, tag = "1")]
11    pub cleartext_socket_config: ::core::option::Option<
12        super::super::raw_buffer::v3::RawBuffer,
13    >,
14    /// Configuration for a downstream TLS socket.
15    #[prost(message, optional, tag = "2")]
16    pub tls_socket_config: ::core::option::Option<
17        super::super::tls::v3::DownstreamTlsContext,
18    >,
19}
20/// Configuration for an upstream StartTls transport socket.
21/// StartTls transport socket wraps two sockets:
22///
23/// * raw_buffer socket which is used at the beginning of the session
24/// * TLS socket used when a protocol negotiates a switch to encrypted traffic.
25#[derive(Clone, PartialEq, ::prost::Message)]
26pub struct UpstreamStartTlsConfig {
27    /// (optional) Configuration for clear-text socket used at the beginning of the session.
28    #[prost(message, optional, tag = "1")]
29    pub cleartext_socket_config: ::core::option::Option<
30        super::super::raw_buffer::v3::RawBuffer,
31    >,
32    /// Configuration for an upstream TLS socket.
33    #[prost(message, optional, tag = "2")]
34    pub tls_socket_config: ::core::option::Option<
35        super::super::tls::v3::UpstreamTlsContext,
36    >,
37}