Enum mz_postgres_util::tunnel::TunnelConfig
source · pub enum TunnelConfig {
Direct {
resolved_ips: Option<BTreeSet<IpAddr>>,
},
Ssh {
config: SshTunnelConfig,
},
AwsPrivatelink {
connection_id: CatalogItemId,
},
}
Expand description
Configures an optional tunnel for use when connecting to a PostgreSQL database.
Variants§
Direct
Establish a direct TCP connection to the database host.
If resolved_ips
is not None, the provided IPs will be used
rather than resolving the hostname.
Ssh
Establish a TCP connection to the database via an SSH tunnel. This means first establishing an SSH connection to a bastion host, and then opening a separate connection from that host to the database. This is commonly referred by vendors as a “direct SSH tunnel”, in opposition to “reverse SSH tunnel”, which is currently unsupported.
Fields
§
config: SshTunnelConfig
AwsPrivatelink
Establish a TCP connection to the database via an AWS PrivateLink service.
Fields
§
connection_id: CatalogItemId
The ID of the AWS PrivateLink service.
Trait Implementations§
source§impl Clone for TunnelConfig
impl Clone for TunnelConfig
source§fn clone(&self) -> TunnelConfig
fn clone(&self) -> TunnelConfig
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 TunnelConfig
impl Debug for TunnelConfig
source§impl PartialEq for TunnelConfig
impl PartialEq for TunnelConfig
impl StructuralPartialEq for TunnelConfig
Auto Trait Implementations§
impl Freeze for TunnelConfig
impl RefUnwindSafe for TunnelConfig
impl Send for TunnelConfig
impl Sync for TunnelConfig
impl Unpin for TunnelConfig
impl UnwindSafe for TunnelConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.