pub struct ConsulProxy {
pub local_service_address: Option<String>,
pub local_service_port: Option<i64>,
pub expose: Option<ConsulExposeConfig>,
pub expose_config: Option<ConsulExposeConfig>,
pub upstreams: Vec<ConsulUpstream>,
pub transparent_proxy: Option<ConsulTransparentProxy>,
pub config: HashMap<String, Value>,
}
Expand description
ConsulProxy represents a Consul Connect sidecar proxy jobspec block.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§local_service_address: Option<String>
§local_service_port: Option<i64>
§expose: Option<ConsulExposeConfig>
§expose_config: Option<ConsulExposeConfig>
§upstreams: Vec<ConsulUpstream>
§transparent_proxy: Option<ConsulTransparentProxy>
TransparentProxy configures the Envoy sidecar to use “transparent proxying”, which creates IP tables rules inside the network namespace to ensure traffic flows thru the Envoy proxy
config: HashMap<String, Value>
Trait Implementations§
Source§impl Clone for ConsulProxy
impl Clone for ConsulProxy
Source§fn clone(&self) -> ConsulProxy
fn clone(&self) -> ConsulProxy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConsulProxy
impl Debug for ConsulProxy
Source§impl Default for ConsulProxy
impl Default for ConsulProxy
Source§fn default() -> ConsulProxy
fn default() -> ConsulProxy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsulProxy
impl<'de> Deserialize<'de> for ConsulProxy
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConsulProxy
impl PartialEq for ConsulProxy
Source§impl Serialize for ConsulProxy
impl Serialize for ConsulProxy
impl StructuralPartialEq for ConsulProxy
Auto Trait Implementations§
impl Freeze for ConsulProxy
impl RefUnwindSafe for ConsulProxy
impl Send for ConsulProxy
impl Sync for ConsulProxy
impl Unpin for ConsulProxy
impl UnwindSafe for ConsulProxy
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
Mutably borrows from an owned value. Read more