pub struct ConsulTransparentProxyBuilder { /* private fields */ }
Expand description
Builder for ConsulTransparentProxy
.
Implementations§
Source§impl ConsulTransparentProxyBuilder
impl ConsulTransparentProxyBuilder
Sourcepub fn uid(&mut self, value: Option<String>) -> &mut Self
pub fn uid(&mut self, value: Option<String>) -> &mut Self
UID of the Envoy proxy. Defaults to the default Envoy proxy container image user.
Sourcepub fn outbound_port(&mut self, value: Option<u16>) -> &mut Self
pub fn outbound_port(&mut self, value: Option<u16>) -> &mut Self
OutboundPort is the Envoy proxy’s outbound listener port. Inbound TCP traffic hitting the PROXY_IN_REDIRECT chain will be redirected here. Defaults to 15001.
Sourcepub fn exclude_inbound_ports(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn exclude_inbound_ports(&mut self, value: Option<Vec<String>>) -> &mut Self
ExcludeInboundPorts is an additional set of ports will be excluded from redirection to the Envoy proxy. Can be Port.Label or Port.Value. This set will be added to the ports automatically excluded for the Expose.Port and Check.Expose fields.
Sourcepub fn exclude_outbound_ports(&mut self, value: Option<Vec<u16>>) -> &mut Self
pub fn exclude_outbound_ports(&mut self, value: Option<Vec<u16>>) -> &mut Self
ExcludeOutboundPorts is a set of outbound ports that will not be redirected to the Envoy proxy, specified as port numbers.
Sourcepub fn exclude_outbound_cid_rs(
&mut self,
value: Option<Vec<String>>,
) -> &mut Self
pub fn exclude_outbound_cid_rs( &mut self, value: Option<Vec<String>>, ) -> &mut Self
ExcludeOutboundCIDRs is a set of outbound CIDR blocks that will not be redirected to the Envoy proxy.
Sourcepub fn exclude_ui_ds(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn exclude_ui_ds(&mut self, value: Option<Vec<String>>) -> &mut Self
ExcludeUIDs is a set of user IDs whose network traffic will not be redirected through the Envoy proxy.
Sourcepub fn no_dns(&mut self, value: Option<bool>) -> &mut Self
pub fn no_dns(&mut self, value: Option<bool>) -> &mut Self
NoDNS disables redirection of DNS traffic to Consul DNS. By default NoDNS is false and transparent proxy will direct DNS traffic to Consul DNS if available on the client.
Sourcepub fn build(
&self,
) -> Result<ConsulTransparentProxy, ConsulTransparentProxyBuilderError>
pub fn build( &self, ) -> Result<ConsulTransparentProxy, ConsulTransparentProxyBuilderError>
Trait Implementations§
Source§impl Clone for ConsulTransparentProxyBuilder
impl Clone for ConsulTransparentProxyBuilder
Source§fn clone(&self) -> ConsulTransparentProxyBuilder
fn clone(&self) -> ConsulTransparentProxyBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more