pub struct GatewayLink {
pub id: String,
pub host: String,
pub ports: Vec<u16>,
pub ranges: Vec<Ipv4Net>,
pub addresses: Vec<Ipv4Addr>,
}Expand description
One linked service as the gateway enforces it, keyed in the gateway configuration by the sandbox resource’s audience.
Fields§
§id: StringResource id of the linked service; a runtime policy names it as link:<id>.
host: StringThe exact internal hostname, lowercase, without a trailing dot. A connection reaches the link only by this name, never by an address.
ports: Vec<u16>The service’s declared ports. Every other port stays refused.
ranges: Vec<Ipv4Net>Address ranges the hostname may resolve into, such as the cluster’s Service range.
addresses: Vec<Ipv4Addr>Fixed addresses the deployment owns for this hostname, such as an internal load
balancer’s static frontend IP. When present the gateway connects to these instead of
resolving the name; each must lie in ranges. Empty means resolve the name.
Implementations§
Trait Implementations§
Source§impl Clone for GatewayLink
impl Clone for GatewayLink
Source§impl Debug for GatewayLink
impl Debug for GatewayLink
Source§impl<'de> Deserialize<'de> for GatewayLink
impl<'de> Deserialize<'de> for GatewayLink
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
impl Eq for GatewayLink
Source§impl PartialEq for GatewayLink
impl PartialEq for GatewayLink
Source§impl Serialize for GatewayLink
impl Serialize for GatewayLink
impl StructuralPartialEq for GatewayLink
Auto Trait Implementations§
impl Forget for GatewayLink
impl Freeze for GatewayLink
impl Move for GatewayLink
impl RefUnwindSafe for GatewayLink
impl Send for GatewayLink
impl Sync for GatewayLink
impl Unpin for GatewayLink
impl UnsafeUnpin for GatewayLink
impl UnwindSafe for GatewayLink
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.