pub struct ServersTransportSpec {
pub certificates_secrets: Option<Vec<String>>,
pub disable_http2: Option<bool>,
pub forwarding_timeouts: Option<ServersTransportForwardingTimeouts>,
pub insecure_skip_verify: Option<bool>,
pub max_idle_conns_per_host: Option<i64>,
pub peer_cert_uri: Option<String>,
pub root_c_as_secrets: Option<Vec<String>>,
pub server_name: Option<String>,
pub spiffe: Option<ServersTransportSpiffe>,
}Expand description
ServersTransportSpec defines the desired state of a ServersTransport.
Fields§
§certificates_secrets: Option<Vec<String>>CertificatesSecrets defines a list of secret storing client certificates for mTLS.
disable_http2: Option<bool>DisableHTTP2 disables HTTP/2 for connections with backend servers.
forwarding_timeouts: Option<ServersTransportForwardingTimeouts>ForwardingTimeouts defines the timeouts for requests forwarded to the backend servers.
insecure_skip_verify: Option<bool>InsecureSkipVerify disables SSL certificate verification.
max_idle_conns_per_host: Option<i64>MaxIdleConnsPerHost controls the maximum idle (keep-alive) to keep per-host.
peer_cert_uri: Option<String>PeerCertURI defines the peer cert URI used to match against SAN URI during the peer certificate verification.
root_c_as_secrets: Option<Vec<String>>RootCAsSecrets defines a list of CA secret used to validate self-signed certificate.
server_name: Option<String>ServerName defines the server name used to contact the server.
spiffe: Option<ServersTransportSpiffe>Spiffe defines the SPIFFE configuration.
Implementations§
Source§impl ServersTransportSpec
impl ServersTransportSpec
Sourcepub fn builder() -> ServersTransportSpecBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder() -> ServersTransportSpecBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building ServersTransportSpec.
On the builder, call .certificates_secrets(...)(optional), .disable_http2(...)(optional), .forwarding_timeouts(...)(optional), .insecure_skip_verify(...)(optional), .max_idle_conns_per_host(...)(optional), .peer_cert_uri(...)(optional), .root_c_as_secrets(...)(optional), .server_name(...)(optional), .spiffe(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ServersTransportSpec.
Trait Implementations§
Source§impl Clone for ServersTransportSpec
impl Clone for ServersTransportSpec
Source§fn clone(&self) -> ServersTransportSpec
fn clone(&self) -> ServersTransportSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServersTransportSpec
impl Debug for ServersTransportSpec
Source§impl Default for ServersTransportSpec
impl Default for ServersTransportSpec
Source§fn default() -> ServersTransportSpec
fn default() -> ServersTransportSpec
Source§impl<'de> Deserialize<'de> for ServersTransportSpec
impl<'de> Deserialize<'de> for ServersTransportSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ServersTransportSpec
impl JsonSchema for ServersTransportSpec
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for ServersTransportSpec
impl PartialEq for ServersTransportSpec
Source§impl Serialize for ServersTransportSpec
impl Serialize for ServersTransportSpec
impl StructuralPartialEq for ServersTransportSpec
Auto Trait Implementations§
impl Freeze for ServersTransportSpec
impl RefUnwindSafe for ServersTransportSpec
impl Send for ServersTransportSpec
impl Sync for ServersTransportSpec
impl Unpin for ServersTransportSpec
impl UnwindSafe for ServersTransportSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more